# Logstash, ES connection error

**URL:** <https://discuss.elastic.co/t/logstash-es-connection-error/311683>\
**Category:** Logstash\
**Created:** [August 9, 2022, 2:06am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683 "2022-08-09T02:06:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellocomputer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hellocomputer/32/100718_2.png) [@hellocomputer](https://discuss.elastic.co/u/hellocomputer)\
**Post date:** [August 9, 2022, 2:06am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683/1 "2022-08-09T02:06:45Z")

</div>

Hello  
I used ubuntu20.04 version and ELK stack 8.3.2 version.  
Then, I's working in connecting with logstash and ES.

> 2022-08-09T02:14:45,699][INFO][logstash.outputs.elasticsearch][main] Failed to perform request {:message=\>"localhost:9200 failed to respond", :exception=\>Manticore::ClientProtocolException, :cause=\>org.apache.http.NoHttpResponseException: localhost:9200 failed to respond}
> 
> [2022-08-09T02:14:45,699][WARN][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=\>"[http://localhost:9200/](http://localhost:9200/)", :exception=\>LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError, :message=\>"Elasticsearch Unreachable: [[http://localhost:9200/](http://localhost:9200/)][Manticore::ClientProtocolException] localhost:9200 failed to respond"}

what is this error? This is logstash's logfile.  
Thank u for reading!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2022, 2:06am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683/2 "2022-08-09T02:06:57Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![hellocomputer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hellocomputer/32/100718_2.png) [@hellocomputer](https://discuss.elastic.co/u/hellocomputer)\
**Post date:** [August 9, 2022, 2:18am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683/3 "2022-08-09T02:18:51Z")

</div>

Thank u! I changed my code!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2022, 3:45am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683/4 "2022-08-09T03:45:02Z")

</div>

You have an INFO and a WARNING, but no errors there.

Basically it means it could not contact Elasticsearch for a period of time.

---

<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:** [September 6, 2022, 3:45am UTC](https://discuss.elastic.co/t/logstash-es-connection-error/311683/5 "2022-09-06T03:45:58Z")

</div>

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