Elasticsearch connection refused error


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/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}

(Andreas H) #2

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.

(system) #3

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