# How does connection pooling internally work with logstash http plugin

**URL:** <https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891>\
**Category:** Logstash\
**Created:** [August 10, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891 "2018-08-10T15:27:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sruthi\_Grace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sruthi_grace/32/32343_2.png) [@Sruthi\_Grace](https://discuss.elastic.co/u/Sruthi_Grace)\
**Post date:** [August 10, 2018, 3:27pm UTC](https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891/1 "2018-08-10T15:27:33Z")

</div>

The default pool max for http output plugin is 50 connections . What happens if all the 50 connections to send out are occupied and there are more logs lines coming into the logstash but all the 50 out connections are still busy , will the logs be dropped after waiting sometime or is there an internal queuing system which waits for a connection to be free and sends the logs lines to one of the available 50 connections ?I am understanding the need to increase pool\_max on http output plugin for logstash

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 10, 2018, 4:08pm UTC](https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891/2 "2018-08-10T16:08:37Z")

</div>

There are queues between the filters and the outputs. If the output cannot accept more data then the data will queue, potentially stopping the filters if the queue fills. That will result in data queueing between the input and the filters. If that queue fills the input stop accepting data. See [https://www.elastic.co/guide/en/logstash/current/execution-model.html](https://www.elastic.co/guide/en/logstash/current/execution-model.html)

---

<div class="post-metadata">

**Author:** ![jonsmiteeww](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jonsmiteeww](https://discuss.elastic.co/u/jonsmiteeww)\
**Post date:** [September 2, 2018, 10:27am UTC](https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891/3 "2018-09-02T10:27:38Z")

</div>

Starting with Elastic-search 5.3, there’s an [HTTP setting](https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-http.html) called `http.content_type.required` . If this option is set to `true` , and you are using Log-stash 2.4 through 5.2, you need to update the Elastic-search output plugin to version 6.2.5 or higher.

with regards

---

<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:** [September 30, 2018, 10:35am UTC](https://discuss.elastic.co/t/how-does-connection-pooling-internally-work-with-logstash-http-plugin/143891/4 "2018-09-30T10:35:08Z")

</div>

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