Elasticsearch unreachable Error in Logstash after installing X-Pack



I've set up Kibana 5.3.0, Logstash 5.3.0, Elasticsearch 5.3.0 and Filebeat 5.3.1.

I had further issues with X-Pack, so I removed it completely and installed it again.
I disabled security, monitoring, graph and watcher in the elasticsearch.yml and kibana.yml .

When I try to run the tools I get an error in Logstash:

   [2017-04-26T12:56:15,662][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://logstash_system:xxxxxx@localhost:9200/, :path=>"/"}
[2017-04-26T12:56:15,673][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>#<URI::HTTP:0x4d39d9b5 URL:http://logstash_system:xxxxxx@localhost:9200/_xpack/monitoring/?system_id=logstash&system_api_version=2&interval=1s>, :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://logstash_system:xxxxxx@localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
[2017-04-26T12:56:17,509][WARN ][logstash.shutdownwatcher ] {"inflight_count"=>2, "stalling_thread_info"=>{"other"=>[{"thread_id"=>19, "name"=>"[.monitoring-logstash]>worker0", "current_call"=>"[...]/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/interval.rb:84:in `sleep'"}]}}

The tools are running on different machines but Logstash tries to connect to localhost:9200 and not the configured IP address.
I wonder about the errors because I have the single X-Pack features disabled.
Somebody knows an answer?

(Pier-Hugues Pellerin) #2

When you install x-pack in logstash it will do the following:

  • It will be on by default
  • Will assume that we connect to a local machine

By looking at your error, I think Logstash is configured with the stock configuration and try to connect to localhost. If ES is running on a different machine you will have add options in the config/logstash.yml, you can look at the option in our documentation at https://www.elastic.co/guide/en/x-pack/current/monitoring-logstash.html

(system) #3

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