# Loadbalnce setting in Filebeat output kafka?

**URL:** https://discuss.elastic.co/t/loadbalnce-setting-in-filebeat-output-kafka/202281
**Category:** Beats
**Tags:** filebeat
**Created:** [October 4, 2019, 5:31am UTC](https://discuss.elastic.co/t/loadbalnce-setting-in-filebeat-output-kafka/202281 "2019-10-04T05:31:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sunilmchaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilmchaudhari/32/9475_2.png) [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)
#### Post date: [October 4, 2019, 5:31am UTC](https://discuss.elastic.co/t/loadbalnce-setting-in-filebeat-output-kafka/202281/1 "2019-10-04T05:31:04Z")

</div>

Hi,  
we have loab balance setting in filebeat output.logstash  
[https://www.elastic.co/guide/en/beats/filebeat/master/load-balancing.html](https://www.elastic.co/guide/en/beats/filebeat/master/load-balancing.html)

Why dont we have loadbalnace setting for output.kafka?  
[https://www.elastic.co/guide/en/beats/filebeat/6.8/kafka-output.html](https://www.elastic.co/guide/en/beats/filebeat/6.8/kafka-output.html)

Is it so that it doesnt send kafka outputs in load balanced mode?  
Case1:I f I have 3 Brokers of Kafka. And I mentioned only 2 hosts in output config of filebeat. Will it work? Will it send events evenly to 3 brokers?

Case2: What if I add 2 more brokers tomorrow to my kafka cluster, so total 5 brokers. Do I need to mention anyone of those new broker to filebeat output?

Case3: If I mentione Broker-0, broker-1 and Broker-2 in filbeat kafka output configuration, and one of the broker is out of network, what will happent to the filebeat? Will it survive with other 2 brokers and run happily? Or it will keep retryin till brokers comes up and running, Or it will die after sometime?

Please help in above 3 scenarios.

Thanks  
Sunil.

---

<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: [November 1, 2019, 5:31am UTC](https://discuss.elastic.co/t/loadbalnce-setting-in-filebeat-output-kafka/202281/2 "2019-11-01T05:31:16Z")

</div>

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