# Filebeat and logstash-output with loadbalance

**URL:** <https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 28, 2018, 6:24am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473 "2018-11-28T06:24:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unix196](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@unix196](https://discuss.elastic.co/u/unix196)\
**Post date:** [November 28, 2018, 6:24am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473/1 "2018-11-28T06:24:33Z")

</div>

from documentation:

> loadbalance: If set to true and multiple Logstash hosts are configured, the output plugin load balances published events onto all Logstash hosts. If set to false, the output plugin sends all events to only one host (determined at random) and will switch to another host if the selected one becomes unresponsive.

Could any one explain more deep this phrase? With loadbalance filebeat send events to all logstash hosts =\> do all logstash receive duplicate event? if one event send to all logstash - in elasticsearch will appear duplicate documents?  
OR filebeat read one events, send to one logstash, read next event, send to next logstash?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 28, 2018, 5:33pm UTC](https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473/2 "2018-11-28T17:33:26Z")

</div>

Filebeat sends one event to one host. There is no duplication among LS hosts.

---

<div class="post-metadata">

**Author:** ![unix196](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@unix196](https://discuss.elastic.co/u/unix196)\
**Post date:** [November 29, 2018, 5:49am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473/3 "2018-11-29T05:49:18Z")

</div>

thanks!

---

<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:** [December 27, 2018, 5:49am UTC](https://discuss.elastic.co/t/filebeat-and-logstash-output-with-loadbalance/158473/4 "2018-12-27T05:49:21Z")

</div>

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