[Logstash 5.6.2] Attempted to resurrect connection to dead ES instance

Hi Experts,

I'm newbie in Elasticsearch. I installed ElasticSearch, Kibana and even Logstash. And there is a problem. I am using all components in version 5.6.2. I know that there are many topics about my issue, and believe it, I have read all of them, but none of them helped me.

I installed all components in a single node, Also I installed x-packs. ElasticSearch and Kibana working fine. When I try to start Logstash, it has appeared the log below:

[WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://172.16.0.179:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://172.16.0.179:9200/'"}

Here is my file:

input { stdin {} }
output {
elasticsearch {
hosts => ["http://172.16.0.179:9200"] }
stdout { codec => rubydebug }

Thanks in Advance
Fernando Moreira

401 is an authorisation error. Did you try adding in the default username and password (elastic/changeme) into the output?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.