# Issue reading from multiple config inputs

**URL:** <https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 30, 2019, 12:27pm UTC](https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854 "2019-10-30T12:27:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Strain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_strain/32/56253_2.png) [@Scott\_Strain](https://discuss.elastic.co/u/Scott_Strain)\
**Post date:** [October 30, 2019, 12:27pm UTC](https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854/1 "2019-10-30T12:27:35Z")

</div>

We are trying to use multiple filebeat.inputs using type log so we can write different topics to kafka hosts. Below are the configs and the logs  
#Main Config  
output.kafka:  
hosts: ["sitkafka342w88m7:9092","sitkafka343w88m7:9092","sitkafka373w86m7:9092","sitkafka374w86m7:9092"]  
topic: '%{[pipeline.topic]}'  
key: '%{[beat.hostname]}-%{[source]}'  
version: '0.11'  
partition.round\_robin:  
reachable\_only: false  
compression: gzip

filebeat.config.inputs:  
enabled: true  
path: 'C:\Program Files\Filebeat\inputs\*.yml'  
reload.enabled: true  
reload.period: 10s

logging.level: info

logging.to\_files: true

logging.files:  
path: 'C:\Program Files\Filebeat\logs'  
name: filebeat  
keepfiles: 5

#Two other input configs  
output.kafka:  
hosts: ["sitkafka342w88m7:9092","sitkafka343w88m7:9092","sitkafka373w86m7:9092","sitkafka374w86m7:9092"]  
topic: '%{[pipeline.topic]}'  
key: '%{[beat.hostname]}-%{[source]}'  
version: '0.11'  
partition.round\_robin:  
reachable\_only: false  
compression: gzip

filebeat.inputs:

- type: log  
paths:

filebeat.inputs:

- type: log  
paths:

#### 

Have no issues when running from only one of the configs.

---

<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:** [October 31, 2019, 8:30am UTC](https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854/2 "2019-10-31T08:30:02Z")

</div>

You can have one `output.*` in your configuration, even if you are using the same output. Otherwise the options you set are overwritten.  
What is it that you are trying to achieve? To me all kafka settings look the same in this format. Could you please format your configuration using `</>`?

---

<div class="post-metadata">

**Author:** ![Scott\_Strain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_strain/32/56253_2.png) [@Scott\_Strain](https://discuss.elastic.co/u/Scott_Strain)\
**Post date:** [October 31, 2019, 7:54pm UTC](https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854/3 "2019-10-31T19:54:32Z")

</div>

we are pointing some logs to a specific topic and other logs to another topic so there will be two different dashboards for the business to consume. We figured out the issue. We needed to update the other inputs to read without the output.kafka and filebeatbeat.config.inputs: so they look like

- type: log  
paths:

---

<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:** [November 28, 2019, 7:54pm UTC](https://discuss.elastic.co/t/issue-reading-from-multiple-config-inputs/205854/4 "2019-11-28T19:54:41Z")

</div>

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