# Elasticsearch Unreachable error in Logstash

**URL:** <https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash/75157>\
**Category:** Logstash\
**Created:** [February 15, 2017, 7:57am UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash/75157 "2017-02-15T07:57:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![bradley.bristowstagg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradley.bristowstagg/32/9954_2.png) [@bradley.bristowstagg](https://discuss.elastic.co/u/bradley.bristowstagg)\
**Post date:** [February 27, 2017, 11:49pm UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash/75157/8 "2017-02-27T23:49:28Z")

</div>

BINGO!!

```
[2017-02-28T10:19:24,022][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://10.1.1.89:9200/, :path=>"/"}
[2017-02-28T10:19:24,029][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>#<URI::HTTP:0x1a2e77f7 URL:http://10.1.1.89:9200/>}

```

You MUST add the following config lines to your /etc/logstash/logstash.yml

```
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.url: http://X.X.X.X:9200

```

Where X.X.X.X is the IP of your Elastic cluster.

EDIT: Clarity

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-unreachable-error-in-logstash/75157)._
