# Elasticsearch connection refused error

**URL:** <https://discuss.elastic.co/t/elasticsearch-connection-refused-error/152292>\
**Category:** Logstash\
**Created:** [October 12, 2018, 7:19pm UTC](https://discuss.elastic.co/t/elasticsearch-connection-refused-error/152292 "2018-10-12T19:19:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmahan](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@cmahan](https://discuss.elastic.co/u/cmahan)\
**Post date:** [October 12, 2018, 7:19pm UTC](https://discuss.elastic.co/t/elasticsearch-connection-refused-error/152292/1 "2018-10-12T19:19:37Z")

</div>

I start logstash my input uses the s3 input plugin. I'm try to output to elasticsearch. However, I get an error and warning.

[ERROR] 2018-10-12 19:12:03.039 [[main]\<s3] s3 - S3 input: Unable to list objects in bucket {:prefix=\>nil, :message=\>"The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."}

[WARN] 2018-10-12 19:12:42.531 [Ruby-0-Thread-4: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"[http://localhost:9200/](http://localhost:9200/)", :error\_type=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=\>"Elasticsearch Unreachable: [[http://localhost:9200/](http://localhost:9200/)][Manticore::SocketException] Connection refused (Connection refused)"}

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [October 13, 2018, 3:09am UTC](https://discuss.elastic.co/t/elasticsearch-connection-refused-error/152292/2 "2018-10-13T03:09:15Z")

</div>

Probably a silly question but is Elasticsearch running?  
Is it listening?  
Run (Linux):  
netstat -an | grep 9200  
Or for Windows  
netstat -an | findstr 9200

And make sure you see an entry with LISTENING in the output.

---

<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:** [November 10, 2018, 3:09am UTC](https://discuss.elastic.co/t/elasticsearch-connection-refused-error/152292/3 "2018-11-10T03:09:17Z")

</div>

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