# Logstash tcp input load balancing

**URL:** <https://discuss.elastic.co/t/logstash-tcp-input-load-balancing/235924>\
**Category:** Logstash\
**Created:** [June 5, 2020, 9:31am UTC](https://discuss.elastic.co/t/logstash-tcp-input-load-balancing/235924 "2020-06-05T09:31:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniele.saccon](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@daniele.saccon](https://discuss.elastic.co/u/daniele.saccon)\
**Post date:** [June 5, 2020, 9:31am UTC](https://discuss.elastic.co/t/logstash-tcp-input-load-balancing/235924/1 "2020-06-05T09:31:57Z")

</div>

Hi everybody,

I have 2 logstash instances in 2 different hosts with the same configurations and a source that sends in tcp.  
It's possible to have a logstash cluster? Or do I have to put a load balancer that send events into the 2 logstash?  
How can a load balancer be done on logstash instances?

Thanks

Daniele

---

<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:** [June 5, 2020, 2:10pm UTC](https://discuss.elastic.co/t/logstash-tcp-input-load-balancing/235924/2 "2020-06-05T14:10:18Z")

</div>

logstash does not have support for clusters that distribute processing of events. A typical load balancer in front of logstash would load balance connections, so if the source only makes one connection it would only send events to one of the two instances.

---

<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 3, 2020, 2:10pm UTC](https://discuss.elastic.co/t/logstash-tcp-input-load-balancing/235924/3 "2020-07-03T14:10:22Z")

</div>

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