# Filebeat with 2 kafka outputs

**URL:** <https://discuss.elastic.co/t/filebeat-with-2-kafka-outputs/157137>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 16, 2018, 9:25pm UTC](https://discuss.elastic.co/t/filebeat-with-2-kafka-outputs/157137 "2018-11-16T21:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodher](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rodher](https://discuss.elastic.co/u/rodher)\
**Post date:** [November 16, 2018, 9:25pm UTC](https://discuss.elastic.co/t/filebeat-with-2-kafka-outputs/157137/1 "2018-11-16T21:25:17Z")

</div>

Hello !

I have an issue with Filebeat when I try to send data logs to 2 Kafka nodes at the same time

The following is the Output Kafka section of the filebeat.yml file:  
output.kafka:  
enabled: true  
hosts: ["192.168.xxx.xx:9092", "192.168.zzz.zz:9092"]  
topic: "syslog"  
timeout: 30s  
max\_message\_bytes: 1000000

Both kafka services are running, but only the second node get data. I mean Only the Kafka node 192.168.zzz.zz get the data Filebeat have sent it.

If I exchange the IP adressess, occurs that the second IP address get the data log.

Why occurs that ? What other configurations are need to implement this use case? I need send the data to both kafka outputs.

Thanks in advance

Regards

hernan d

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 17, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-with-2-kafka-outputs/157137/2 "2018-11-17T08:28:25Z")

</div>

As far as I know Filebeat can only send to a single destination. If you specify multiple destination hosts I would therefore expect it to use this for failover whenever necessary. If you send the data through Logstash you should be able to write to multiple outputs from there.

---

<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:** [December 15, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-with-2-kafka-outputs/157137/3 "2018-12-15T08:28:25Z")

</div>

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