# Logstash Attempted to resurrect connection to dead ES instance, but got an error

**URL:** <https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371>\
**Category:** Logstash\
**Created:** [May 9, 2019, 1:16pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371 "2019-05-09T13:16:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hari.v](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hari.v](https://discuss.elastic.co/u/hari.v)\
**Post date:** [May 9, 2019, 1:16pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/1 "2019-05-09T13:16:38Z")

</div>

Hi,

i am getting below error, after enable firewall on the logstash server.

i opened the port 5044 & 9600 on the both elasticsearch and logstash server.

[ERROR][logstash.monitoring.internal pipeline source] Failed to fetch XPack information from Elasticsearch. This is likely due to failure to reach a live Elasticsearch cluster

[2019-05-10T05:12:25,182][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://elastic:xxxxxx@192.168.136.X:9200/](http://elastic:xxxxxx@192.168.136.X:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://elastic:xxxxxx@192.168.136.X:9200/](http://elastic:xxxxxx@192.168.136.X:9200/)][Manticore::SocketException] No route to host (Host unreachable)"}  
[2019-05-10T05:12:25,214][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://elastic:xxxxxx@192.168.136.x:9200/](http://elastic:xxxxxx@192.168.136.x:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://elastic:xxxxxx@192.168.136.X:9200/](http://elastic:xxxxxx@192.168.136.X:9200/)][Manticore::SocketException] No route to host (Host unreachable)"}

can help me, what i did wrong.

Thanks

---

<div class="post-metadata">

**Author:** ![hari.v](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hari.v](https://discuss.elastic.co/u/hari.v)\
**Post date:** [May 9, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/2 "2019-05-09T13:22:12Z")

</div>

logstash conf file:

```auto
input {
 beats {
   port => 5044
 }
}
filter {
if [type] == "syslog" {
    grok {
      match => { "message" => "%{SYSLOGLINE}" }
    }

    date {
match => ["timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]
}
  }

}
output {
 elasticsearch {
  hosts => ["http://192.168.136.x:9200", "http://192.168.136.x:9200"]
  user => "elastic"
  password => "elastic"
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
       }
stdout {
    codec => rubydebug
       }
}

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 9, 2019, 3:33pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/4 "2019-05-09T15:33:34Z")

</div>

> [@hari.v](#):
>
> i opened the port 5044 & 9600 on the both elasticsearch and logstash server.

Did you open 9200?

---

<div class="post-metadata">

**Author:** ![hari.v](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hari.v](https://discuss.elastic.co/u/hari.v)\
**Post date:** [May 9, 2019, 4:12pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/5 "2019-05-09T16:12:43Z")

</div>

yes i opened port 9200 in loagstash server

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [May 9, 2019, 5:26pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/6 "2019-05-09T17:26:11Z")

</div>

you need to open 9200 on the _Elasticsearch_ host, and ensure that the Logstash host has a route to the Elasticsearch host.

---

<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:** [June 6, 2019, 5:26pm UTC](https://discuss.elastic.co/t/logstash-attempted-to-resurrect-connection-to-dead-es-instance-but-got-an-error/180371/7 "2019-06-06T17:26:11Z")

</div>

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