# Logstash Connectivity Error to Elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-connectivity-error-to-elasticsearch/126940>\
**Category:** Logstash\
**Created:** [April 5, 2018, 1:27pm UTC](https://discuss.elastic.co/t/logstash-connectivity-error-to-elasticsearch/126940 "2018-04-05T13:27:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumehta1998](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kumehta1998](https://discuss.elastic.co/u/kumehta1998)\
**Post date:** [April 5, 2018, 1:27pm UTC](https://discuss.elastic.co/t/logstash-connectivity-error-to-elasticsearch/126940/1 "2018-04-05T13:27:53Z")

</div>

[WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://192.168.111.33:9200/](http://192.168.111.33:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://192.168.111.33:9200/](http://192.168.111.33:9200/)][Manticore::SocketException] Connection refused (Connection refused)"}

input {  
file {  
path =\> "/var/log/messages"  
type =\> "syslog"  
}  
}

---Output Section of logstash.conf  
output {  
elasticsearch {  
hosts =\> ["192.168.111.33:9200"]  
index =\> "client-%{+YYYY.MM.dd}"

}  
}

What could be this issue??

---

<div class="post-metadata">

**Author:** ![Suman\_Reddy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suman_reddy1/32/27303_2.png) [@Suman\_Reddy1](https://discuss.elastic.co/u/Suman_Reddy1)\
**Post date:** [April 5, 2018, 5:42pm UTC](https://discuss.elastic.co/t/logstash-connectivity-error-to-elasticsearch/126940/2 "2018-04-05T17:42:52Z")

</div>

Please check thr connectivity using Ping first, if it is established it shoud work. If not you might need to open that ip and port at firewall.

---

<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 3, 2018, 5:43pm UTC](https://discuss.elastic.co/t/logstash-connectivity-error-to-elasticsearch/126940/3 "2018-05-03T17:43:02Z")

</div>

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