# Load balance for filbeat and mesos-dns and dc/os?

**URL:** <https://discuss.elastic.co/t/load-balance-for-filbeat-and-mesos-dns-and-dc-os/100920>\
**Category:** Beats\
**Created:** [September 18, 2017, 7:11pm UTC](https://discuss.elastic.co/t/load-balance-for-filbeat-and-mesos-dns-and-dc-os/100920 "2017-09-18T19:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javadevmtl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javadevmtl/32/45613_2.png) [@javadevmtl](https://discuss.elastic.co/u/javadevmtl)\
**Post date:** [September 18, 2017, 7:11pm UTC](https://discuss.elastic.co/t/load-balance-for-filbeat-and-mesos-dns-and-dc-os/100920/1 "2017-09-18T19:11:05Z")

</div>

Hi, in filebeat and logstash we can load balance by providing multiple hosts in the host parameter like so...

hosts: ["host1", "host2"]  
loadbalance: true

How do we make this work with service discovery systems like mesos-dns/consul/swarm, more specifically with mesos and dc/os?

I have logstash.marathon.l4lb.thisdcos.directory which loadbalances on itself, but from my understanding that would happen once per connection.

Any thoughts on this?

---

<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:** [October 9, 2017, 7:11pm UTC](https://discuss.elastic.co/t/load-balance-for-filbeat-and-mesos-dns-and-dc-os/100920/2 "2017-10-09T19:11:09Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
