# 2 Logstash for load balancing and avoid duplication

**URL:** <https://discuss.elastic.co/t/2-logstash-for-load-balancing-and-avoid-duplication/306501>\
**Category:** Logstash\
**Created:** [June 6, 2022, 8:52pm UTC](https://discuss.elastic.co/t/2-logstash-for-load-balancing-and-avoid-duplication/306501 "2022-06-06T20:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Devraj\_patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devraj_patel/32/106691_2.png) [@Devraj\_patel](https://discuss.elastic.co/u/Devraj_patel)\
**Post date:** [June 6, 2022, 8:52pm UTC](https://discuss.elastic.co/t/2-logstash-for-load-balancing-and-avoid-duplication/306501/1 "2022-06-06T20:52:47Z")

</div>

Till now I was using only 1 server with logstash for sending syslog data to Elasticsearch. I am switching to 2 servers with logstash for load balancing and using f5 VIP, is there a way logstash from different instances can send the same data to Elasticsearch without duplicating in Elasticsearch?

---

<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 6, 2022, 8:56pm UTC](https://discuss.elastic.co/t/2-logstash-for-load-balancing-and-avoid-duplication/306501/2 "2022-06-06T20:56:20Z")

</div>

The F5 will load-balance connection requests between the two instances. Any data sent to the F5 will only get sent to one of the logstash servers, so there will be no duplication.

---

<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 4, 2022, 8:56pm UTC](https://discuss.elastic.co/t/2-logstash-for-load-balancing-and-avoid-duplication/306501/3 "2022-07-04T20:56:52Z")

</div>

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