Elasticsearch is still initializing the kibana index

ぃ、小莉子 提交于 2019-11-27 11:27:20

问题


When I am trying to start Kibana I am facing the following issue. I first restarted my elasticsearch server it was running successfully. After starting Elasticsearch I tried to start Kibana but no luck.

{"name":"Kibana","hostname":"ABCD","pid":3848,"level":30,"msg":"Elasticsearch is still initializing the kibana index... Trying again in 2.5 second.","time":"2015-07-03T07:35:34.936Z","v":0}

Thanks in advance


回答1:


Warning: Removing .kibana index will make you lose all your kibana settings (indexes, graphs, dashboards)

This behavior is sometimes caused by an existing .kibana index. Kindly delete the .kibana index in elasticsearch using following command:

curl -XDELETE http://localhost:9200/.kibana

After deleting the index, restart Kibana.

If the problem still persists, and you are willing to lose any existing data, you can try deleting all indexes using following command:

curl -XDELETE http://localhost:9200/*

Followed by restarting Kibana.

Note: localhost:9200 is the elasticsearch server's host:port, which may be different in your case.




回答2:


the curl -XDELETE http://localhost:9200/.kibana command works fine, however you lost all your kibana' settings (indexes, graphs, dashboards); by just querying the index I've solved the problem, without losing my data. For example:

curl -s http://localhost:9200/.kibana/_recovery?pretty
curl -XPUT 'localhost:9200/.kibana/_settings' -d '
{
    "index" : {
        "number_of_replicas" : 0
    }
}'

Then start Kibana, it should works.

Gael Le Moellic




回答3:


Sometimes you need to wait few minutes after restarting ES.
That can be also connected with low disk space.
Observed on AWS t2.small machine with ELK stack.




回答4:


Something is wrong with your Kibana index inside elasticsearch. I had the same message and i just deleted my Kibana index and then, when i restarted it, a new index of Kibana was created by the service.



来源:https://stackoverflow.com/questions/31201051/elasticsearch-is-still-initializing-the-kibana-index

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!