# Multiple Logstash IPs in Filebeat

**URL:** <https://discuss.elastic.co/t/multiple-logstash-ips-in-filebeat/165716>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 25, 2019, 8:11am UTC](https://discuss.elastic.co/t/multiple-logstash-ips-in-filebeat/165716 "2019-01-25T08:11:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harsh_sharma/32/32093_2.png) [@Harsh\_Sharma](https://discuss.elastic.co/u/Harsh_Sharma)\
**Post date:** [January 25, 2019, 8:11am UTC](https://discuss.elastic.co/t/multiple-logstash-ips-in-filebeat/165716/1 "2019-01-25T08:11:09Z")

</div>

Hello,

I'm using ELK 6.5.4. I have 3 logstash server (10.5.2.1, 10.5.2.2, 10.5.2.3) and a LB (10.5.1.1) on these 3 logstash server.  
Now in filebeat Logstash output instead of providing LB ip could I mention all the 3 IPs of logstash server?  
If yes, what will be the format?

Current Logstash Output (With LB ip)-

> output.logstash:  
> hosts: ["10.5.1.1:5044"]

Planning not to use LB IP. Please suggest.  
Thanks.

---

<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:** [January 25, 2019, 12:38pm UTC](https://discuss.elastic.co/t/multiple-logstash-ips-in-filebeat/165716/2 "2019-01-25T12:38:05Z")

</div>

The hosts setting is an array. The default port is 5044. Just set output.logstash.hosts to `["ip1", "ip2", "ip3"]`.

---

<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:** [February 22, 2019, 12:38pm UTC](https://discuss.elastic.co/t/multiple-logstash-ips-in-filebeat/165716/3 "2019-02-22T12:38:05Z")

</div>

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