ELK企业应用-kibana页面显示不正常(一)
kibana页面显示不正常-Request Timeout after 30000ms
1:错误页面
2:问题分析
kibana处理时间过长,应该是日志过大导致kibana调用超时
检查服务端口
端口存活
检查日志
[2018-10-18T09:33:41,346][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch' but Elasticsearch appears to be unreachable or down! {:error_message=>"Elasticsearch Unreachable: [http://elk-data:9200/][Manticore::SocketTimeout] Read timed out", :class=>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError", :will_retry_in_seconds=>4}
[2018-10-18T09:38:03,046][ERROR][logstash.licensechecker.licensemanager] Unable to retrieve license information from license server {:message=>"Got response code '400' contacting Elasticsearch at URL 'http://elk-master:9200/_xpack'", :class=>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError"}
重启了集群所有elasticsearch,虽然端口都在,但可能出现了问题
查看索引
red索引188个(注:包含了redis*索引,再次不太严谨)
正常索引181个
分析:非正常索引导致logstash日志报错,所以logstash日志报错可忽略。但kibana打不开,应该是非正常索引占用了大部分资源,导致磁盘占有率过高。
3:问题建议
删除30天前的日志,使服务器资源释放
脚本查看:https://blog.csdn.net/qq_37960324/article/details/83339951