# Encounter a problem when write two config file

**URL:** <https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619>\
**Category:** Logstash\
**Created:** [April 28, 2016, 3:55am UTC](https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619 "2016-04-28T03:55:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gfafei](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gfafei](https://discuss.elastic.co/u/gfafei)\
**Post date:** [April 28, 2016, 3:55am UTC](https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619/1 "2016-04-28T03:55:08Z")

</div>

In the directory "conf.d",I wrote two config file --f1 an f2.when I write data to f1's input and the f2's output recive the data too.How can I avoid this?I expect that the two config file have no effect on each other.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 28, 2016, 5:28am UTC](https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619/2 "2016-04-28T05:28:48Z")

</div>

Your assumption was incorrect. All configuration files are basically concatenated and all filters and outputs will apply to all inputs unless you add conditionals to select which events to send where.

---

<div class="post-metadata">

**Author:** ![gfafei](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gfafei](https://discuss.elastic.co/u/gfafei)\
**Post date:** [April 28, 2016, 5:40am UTC](https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619/3 "2016-04-28T05:40:48Z")

</div>

thank you .

---

<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:** [July 6, 2017, 5:00am UTC](https://discuss.elastic.co/t/encounter-a-problem-when-write-two-config-file/48619/4 "2017-07-06T05:00:13Z")

</div>

Closed on July 6, 2017, 5:00am UTC


