# Elasticsearch unreachable Error in Logstash after installing X-Pack

**URL:** <https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash-after-installing-x-pack/83681>\
**Category:** Logstash\
**Created:** [April 26, 2017, 11:05am UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash-after-installing-x-pack/83681 "2017-04-26T11:05:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasdf](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jasdf](https://discuss.elastic.co/u/jasdf)\
**Post date:** [April 26, 2017, 11:05am UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash-after-installing-x-pack/83681/1 "2017-04-26T11:05:27Z")

</div>

Hi,

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?

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [April 28, 2017, 2:08pm UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash-after-installing-x-pack/83681/2 "2017-04-28T14:08:44Z")

</div>

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](https://www.elastic.co/guide/en/x-pack/current/monitoring-logstash.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2017, 2:14pm UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash-after-installing-x-pack/83681/3 "2017-05-26T14:14:02Z")

</div>

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