# Filebeat configuration by giving multiple output log-stash host details

**URL:** <https://discuss.elastic.co/t/filebeat-configuration-by-giving-multiple-output-log-stash-host-details/62509>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 7, 2016, 4:45pm UTC](https://discuss.elastic.co/t/filebeat-configuration-by-giving-multiple-output-log-stash-host-details/62509 "2016-10-07T16:45:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth\_ramineni](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srikanth\_ramineni](https://discuss.elastic.co/u/srikanth_ramineni)\
**Post date:** [October 7, 2016, 4:45pm UTC](https://discuss.elastic.co/t/filebeat-configuration-by-giving-multiple-output-log-stash-host-details/62509/1 "2016-10-07T16:45:33Z")

</div>

can we specify two host ids in file beat configuration? If we specify will data will distribute to different servers or same data will go different servers.  
In filebeat.yml file we have given configuration like below  
hosts: ["192.16.1.42:9200","192.16.1.41:9200"]

---

<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:** [October 7, 2016, 9:57pm UTC](https://discuss.elastic.co/t/filebeat-configuration-by-giving-multiple-output-log-stash-host-details/62509/2 "2016-10-07T21:57:09Z")

</div>

Yes, one can configure multiple hosts. See [logstash output options](https://www.elastic.co/guide/en/beats/filebeat/current/logstash-output.html#_logstash_output_options). For filebeat the `spooler_size` should be bigger the `bulk_max_size`, so batches will be split up and load balanced.

---

<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 28, 2016, 4:45pm UTC](https://discuss.elastic.co/t/filebeat-configuration-by-giving-multiple-output-log-stash-host-details/62509/3 "2016-10-28T16:45:51Z")

</div>

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