# Can we have multiple output.logstash in filebeat.yml

**URL:** <https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977>\
**Category:** Beats\
**Created:** [May 23, 2018, 10:29am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977 "2018-05-23T10:29:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sksingh888888](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@sksingh888888](https://discuss.elastic.co/u/sksingh888888)\
**Post date:** [May 23, 2018, 10:29am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/1 "2018-05-23T10:29:19Z")

</div>

Hi,

I have a logging system, where I have configured filebeat with one output.logstash:, now I want to add another logstash. Is it possible to do that ?  
Something like:

output.logstash:  
hosts: ["10.0.2.4:5051"]  
hosts: ["11.0.2.4:5051"]

Thanks for your advice.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [May 23, 2018, 10:39am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/2 "2018-05-23T10:39:31Z")

</div>

Yes, it's possible. `output.logstash.hosts` is a list. You can add multiple items to it:

```auto
output.logstash:
  hosts: ["10.0.2.4:5051", "11.0.2.4:5051"]

```

---

<div class="post-metadata">

**Author:** ![sksingh888888](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@sksingh888888](https://discuss.elastic.co/u/sksingh888888)\
**Post date:** [May 23, 2018, 10:44am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/3 "2018-05-23T10:44:02Z")

</div>

@kvch, thanks for your reply, but what I know the way you are mentioning is load balancing.  
Please correct me if I am wrong. But what I want is 2 difference independent logstash ouputs.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [May 23, 2018, 10:52am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/4 "2018-05-23T10:52:42Z")

</div>

I see. Sorry for misunderstanding your use case. This is unfortunately not supported yet. But you can work around it by starting two Filebeat instances with the same config except for the `output.logstash.hosts` part.

---

<div class="post-metadata">

**Author:** ![sksingh888888](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@sksingh888888](https://discuss.elastic.co/u/sksingh888888)\
**Post date:** [May 23, 2018, 10:55am UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/5 "2018-05-23T10:55:44Z")

</div>

No problem at all, thanks for your advice. I would follow your advice, let you know whether it worked.  
Thanks a lot slight\_smile:

---

<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:** [June 20, 2018, 12:55pm UTC](https://discuss.elastic.co/t/can-we-have-multiple-output-logstash-in-filebeat-yml/132977/6 "2018-06-20T12:55:46Z")

</div>

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