# Filebeat send different files to different output

**URL:** <https://discuss.elastic.co/t/filebeat-send-different-files-to-different-output/139036>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 8, 2018, 8:32am UTC](https://discuss.elastic.co/t/filebeat-send-different-files-to-different-output/139036 "2018-07-08T08:32:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SubashKunjupillai](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SubashKunjupillai](https://discuss.elastic.co/u/SubashKunjupillai)\
**Post date:** [July 8, 2018, 8:32am UTC](https://discuss.elastic.co/t/filebeat-send-different-files-to-different-output/139036/1 "2018-07-08T08:32:17Z")

</div>

Hi,

We have a requirement where we need to parse two different logs using filebeat.

1. Send the first file content to Kafka
2. Since the second file has lot of irrelevant information, some basic filtering will be done in filebeat and the rest of the content should be written to another file in the same machine.

I've seen that filebeat was supporting multiple output in 5.6.0, but in 6.x version I see that feature is removed stating that there would be problem with the registry.

Can some one explain why this is not supported in 6.x though we are going to harvest different file and send to different output. And any possible solution without sending the data to logstash since we need the filtered content of second file to be available in that same machine.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 8, 2018, 1:48pm UTC](https://discuss.elastic.co/t/filebeat-send-different-files-to-different-output/139036/2 "2018-07-08T13:48:33Z")

</div>

The reason for multiple outputs are not supported is explained in this [issue](https://github.com/elastic/beats/issues/1035#issuecomment-230749865). Moreover, even in 5.x you could not selective route data to one particular output, all data went to all outputs.

You could run two separate instances of Filebeat. One for sending direct to Kafka. And one for parsing/filtering then writing a file.

---

<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:** [August 5, 2018, 1:48pm UTC](https://discuss.elastic.co/t/filebeat-send-different-files-to-different-output/139036/3 "2018-08-05T13:48:37Z")

</div>

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