# How to make Filebeat send events to multiple logstash in roundrobin

**URL:** <https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 22, 2015, 6:33pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780 "2015-12-22T18:33:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omar\_Al\_Zabir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omar_al_zabir/32/5943_2.png) [@Omar\_Al\_Zabir](https://discuss.elastic.co/u/Omar_Al_Zabir)\
**Post date:** [December 22, 2015, 6:33pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780/1 "2015-12-22T18:33:16Z")

</div>

I have a server which produces 1500 req/sec. Filebeat is processing the logs and sending to a logstash. However, it sends all the events to one logstash. How do I get it to send to multiple logstash servers in order to distribute the load.

Similarly I need to get the logstash to distribute the events to multiple elasticsearch nodes, not just one, for events coming from the same filebeat client.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 23, 2015, 4:06pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780/2 "2015-12-23T16:06:26Z")

</div>

in beats you can configure multiple [hosts](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html#loadbalance) and set [loadbalance=true](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html#loadbalance) to get load-balancing.

See logstash elasticsearch output plugin [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#_synopsis_57). The output plugin supports multiple hosts + plus number of output workers can be set.

---

<div class="post-metadata">

**Author:** ![Omar\_Al\_Zabir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omar_al_zabir/32/5943_2.png) [@Omar\_Al\_Zabir](https://discuss.elastic.co/u/Omar_Al_Zabir)\
**Post date:** [December 24, 2015, 11:47am UTC](https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780/3 "2015-12-24T11:47:24Z")

</div>

This is very helpful. Thank you very much!

---

<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 5, 2017, 9:57pm UTC](https://discuss.elastic.co/t/how-to-make-filebeat-send-events-to-multiple-logstash-in-roundrobin/37780/4 "2017-07-05T21:57:13Z")

</div>


