搭建ELK遇到的坑
2019-08-20T10:22:17,085][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error.
{:url=>"http://192.168.1.117:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable:
[http://192.168.1.117:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
使用logstash配置output输出是出现的错误,网上百度的答案基本上是密码配置,或者网络故障。
我遇到的是,由于我的elasticsearch和logstash 配置在一台服务器上,而且用了127.0.0.1 所以在logstash配置文件需要写成hosts => "127.0.0.1:9200" 不然就报错了

浙公网安备 33010602011771号