# Elasticsearch output plugin: frequent Connection Reset errors

**URL:** https://discuss.elastic.co/t/elasticsearch-output-plugin-frequent-connection-reset-errors/43755
**Category:** Logstash
**Created:** [March 8, 2016, 10:30am UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-frequent-connection-reset-errors/43755 "2016-03-08T10:30:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mguiwin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mguiwin/32/6743_2.png) [@mguiwin](https://discuss.elastic.co/u/mguiwin)
#### Post date: [March 8, 2016, 10:30am UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-frequent-connection-reset-errors/43755/1 "2016-03-08T10:30:18Z")

</div>

Hello,

I often get this in Logstash logs (every 5-10 minutes):  
`{:timestamp=>"2016-03-08T10:53:34.880000+0100", :message=>"Attempted to send a bulk request to Elasticsearch configured at '[\"http://xxx.xxx.xxx.xxx:9200/\"]', but Elasticsearch appears to be unreachable or down!", :client_config=>{:hosts=>["http://xxx.xxx.xxx.xxx:9200/"], :ssl=>nil, :transport_options=>{:socket_timeout=>10, :request_timeout=>10, :proxy=>nil, :ssl=>{}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::Manticore, :logger=>nil, :tracer=>nil, :reload_connections=>false, :retry_on_failure=>false, :reload_on_failure=>false, :randomize_hosts=>false}, :error_message=>"Connection reset", :class=>"Manticore::SocketException", :level=>:error}`

I'm using Logstash 2.2.2 and ES 2.2.

Is it due to HTTP pipelining (enabled in my ES config)? There is that **http.pipelining.max\_events** setting which is described as: _"The maximum number of events to be queued up in memory before a HTTP connection is closed, defaults to 10000."_ So I guess ES closes the HTTP pipeline after max events are received, which might be the source of the exception, right?

Most importantly, the log says _"retry\_on\_failure=\>false"_: does that mean data is lost when this error happens and no retries will be attempted?

Thanks,  
MG

---

<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: [July 6, 2017, 5:07am UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-frequent-connection-reset-errors/43755/2 "2017-07-06T05:07:47Z")

</div>


