# Elasticsearch-7.4.2 getting stuck at having thousands of close\_wait connections with logstash-7.4.3

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-4-2-getting-stuck-at-having-thousands-of-close-wait-connections-with-logstash-7-4-3/364766>\
**Category:** Elasticsearch\
**Created:** [August 12, 2024, 8:55am UTC](https://discuss.elastic.co/t/elasticsearch-7-4-2-getting-stuck-at-having-thousands-of-close-wait-connections-with-logstash-7-4-3/364766 "2024-08-12T08:55:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshulvika360](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anshulvika360/32/135441_2.png) [@anshulvika360](https://discuss.elastic.co/u/anshulvika360)\
**Post date:** [August 12, 2024, 8:55am UTC](https://discuss.elastic.co/t/elasticsearch-7-4-2-getting-stuck-at-having-thousands-of-close-wait-connections-with-logstash-7-4-3/364766/1 "2024-08-12T08:55:25Z")

</div>

We are running elasticsearch cluster with two nodes and sending logs from 7 different machines using logstash. Elasticsearch keeps working fine for one or two days until we start seeing close\_wait connections on master node.These close\_wait connections keep piling up until they reach in thousands and elasticsearch becomes unresponsive. All connection are from logstash. They get cleared only either we restart all the logstash instances or we restart our elaticsearch cluster. Has anyone faced the same problem and have any solution.  
OS-Ubuntu-20.04.2 lts

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 13, 2024, 7:36am UTC](https://discuss.elastic.co/t/elasticsearch-7-4-2-getting-stuck-at-having-thousands-of-close-wait-connections-with-logstash-7-4-3/364766/2 "2024-08-13T07:36:37Z")

</div>

According to the [official support matrix](https://www.elastic.co/support/matrix#matrix_os) it does not look like Elasticsearch 7.4 is supported on Ubuntu 20.04 so I would recommend you upgrade to Elasticsearch 7.17 and see if that resolves the issue.
