# Separate configs, different indexes yet both logs go to both indexes

**URL:** <https://discuss.elastic.co/t/separate-configs-different-indexes-yet-both-logs-go-to-both-indexes/102411>\
**Category:** Logstash\
**Created:** [October 2, 2017, 8:09am UTC](https://discuss.elastic.co/t/separate-configs-different-indexes-yet-both-logs-go-to-both-indexes/102411 "2017-10-02T08:09:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 2, 2017, 8:18am UTC](https://discuss.elastic.co/t/separate-configs-different-indexes-yet-both-logs-go-to-both-indexes/102411/2 "2017-10-02T08:18:06Z")

</div>

Have a look at [this thread](https://discuss.elastic.co/t/problem-with-output-elasticsearch-data-duplicate-on-index/101981). Logstash basically concatenates all files in the config directory, which means that all inputs will go to all outputs unless you use conditionals.

---

_[View the full topic](https://discuss.elastic.co/t/separate-configs-different-indexes-yet-both-logs-go-to-both-indexes/102411)._
