解决kibana启动的时候,Kibana server is not ready yet

我安装的是 elsticsearch7.9.2    kibana7.9.2    wazuh 3.13.2  filebeat 3.13.2

出现以上情况有多种原因,可以用以下两种方式解决: 

方式一

查看kibana日志。如果没有配置日志则在/var/log/message里面;如果配置了日志则在配置的日志路径下。

 

{"type":"log","@timestamp":"2019-12-11T08:03:14Z","tags":["warning","migrations"],"pid":1,"message":"Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting Kibana."}

给出的建议是要删除index .kibana_2 然后重启 kibana

怎么删除呢?
参考:https://discuss.elastic.co/t/another-kibana-instance-appears-to-be-migrating-the-index/165708

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

localhost 更换成 es service 的 clusterip 即可
之后 重启kibana ,问题消失

方式二

我的解决步骤是:(作为改错记录)

1、确定JDK版本:JDK1.8以上,最好JDK11(我的是1.8,目前是可以用的,需要11版本的可以从链接下载)

链接: https://pan.baidu.com/s/1EYtj3d8OboJDjypoTLdLog 提取码: y2jn 

2、修改elsaticsearch 和 kibana 的配置 如下:

         1)#   配置elasticsearch
          cat /etc/elasticsearch/elasticsearch.yml

#集群名
cluster.name: my-es
#node名
node.name: node-1
#数据目录
path.data: /data/es-data
#日志目录
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0       #本机可以写IP也可以0.0.0.0
http.port: 9200
#集群master需要和node名设置一致
cluster.initial_master_nodes: ["node-1"]

         2)#   配置kibana

           cat /etc/kibana/kibana.yml

server.port: 5601
server.host: "yourip"     #172.168.234.122
server.name: "node-1"
elasticsearch.hosts: ["http://172.168.234.122:9200"]
kibana.index: ".kibana"

3、重新启动kibana和elasticsearch

systemctl daemon-reload

systemctl start elasticsearch.service

systemctl start kibana.service

这三个步骤以后,访问kibana不会只出现一串文字  :Kibana server is not ready yet  了,但是又出现了新的问题如下提示缺少elasticserch的模板,因此又需要解决问题。

有相同问题的小伙伴,可以见我另外一个帖子:解决kibana启动时:缺少elasticsearch模板,check elasticsearch template_Devour_的博客-CSDN博客

  • 8
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值