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

(Fernando Moreira) #1

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=>"", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL ''"}

Here is my file:

input { stdin {} }
output {
elasticsearch {
hosts => [""] }
stdout { codec => rubydebug }

Thanks in Advance
Fernando Moreira

(Mark Walkom) #2

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

(system) #3

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