# Intermittent ConnectionFailed errors from ElasticSearch filter

**URL:** <https://discuss.elastic.co/t/intermittent-connectionfailed-errors-from-elasticsearch-filter/135652>\
**Category:** Logstash\
**Created:** [June 13, 2018, 8:36am UTC](https://discuss.elastic.co/t/intermittent-connectionfailed-errors-from-elasticsearch-filter/135652 "2018-06-13T08:36:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edball](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@edball](https://discuss.elastic.co/u/edball)\
**Post date:** [June 13, 2018, 8:36am UTC](https://discuss.elastic.co/t/intermittent-connectionfailed-errors-from-elasticsearch-filter/135652/1 "2018-06-13T08:36:59Z")

</div>

Hi,

I've set up a Logstash pipeline with a filebeat input, a couple of ElasticSearch filters to retrieve previous events and an ElasticSearch ouput. I am getting the following errors intermittently in the logs:

```
[2018-06-13T09:11:13,376][WARN][logstash.filters.elasticsearch] Failed to query elasticsearch for previous event {:index=>"my-index*", :query=>"request_id:248f7e42-a168-4d17-9eed-ce2eaa351619 AND log_message:\"My log message\"", :event=>#<LogStash::Event:0x21582863>, :error=>#<Faraday::ConnectionFailed>}

```

Here is my pipeline YML: [https://gist.github.com/SequensisTest/694314d0303ebd0b52e0b74ba215b756](https://gist.github.com/SequensisTest/694314d0303ebd0b52e0b74ba215b756)

I've tried adjusting the sleep time and the number of Logstash pipeline workers in case multiple threads were hogging connections or something but still getting the intermittent errors with any configuration.

I am using Logstash 6.2.4 locally on Windows Server 2012 R2. The ElasticSearch instance is hosted on the Elastic Cloud.

Please help.

Thanks,  
Ed

---

<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 11, 2018, 8:37am UTC](https://discuss.elastic.co/t/intermittent-connectionfailed-errors-from-elasticsearch-filter/135652/2 "2018-07-11T08:37:01Z")

</div>

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