# Logstash priority order when using multiple config files

**URL:** https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507
**Category:** Logstash
**Created:** [March 29, 2017, 3:15pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507 "2017-03-29T15:15:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jayanna\_Hallur](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayanna\_Hallur](https://discuss.elastic.co/u/Jayanna_Hallur)
#### Post date: [March 29, 2017, 3:15pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507/1 "2017-03-29T15:15:10Z")

</div>

Hi All

I'm planning to use multiple config files in our deployment.

- One config file with input for beat and output to elastic search only
- I would like to maintain separate config file for each applications teams for data filtering .. so that any changes requested by any team we shall make changes only to the respective team config file maintained. This way we shall avoid impacting other team data streaming while changing for one team.

My question here is/are:

- is there any priority order applied by logstash when it reads all config files from config dir? ..like chronological?

---

<div class="post-metadata">

### Author: ![paz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paz/32/28003_2.png) [@paz](https://discuss.elastic.co/u/paz)
#### Post date: [March 29, 2017, 3:23pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507/2 "2017-03-29T15:23:39Z")

</div>

The file order is alphabetical, so depending whether the filters are depended on each other or not, you can prefix/suffix the file names to maintain appropriate order.

---

<div class="post-metadata">

### Author: ![Jayanna\_Hallur](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayanna\_Hallur](https://discuss.elastic.co/u/Jayanna_Hallur)
#### Post date: [April 3, 2017, 5:29pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507/3 "2017-04-03T17:29:33Z")

</div>

Thanks. Which config takes the priority? the found or last found config if the same config is placed in multiple configs by mistake ..

---

<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: [April 3, 2017, 7:55pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507/4 "2017-04-03T19:55:48Z")

</div>

The configs are concatenated in alphabetical order, so no config takes priority over another, which is why it is important to use conditionals to ensure you e.g. do not send all events to all elastic search outputs (if more than one is configured).

---

<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: [May 1, 2017, 7:55pm UTC](https://discuss.elastic.co/t/logstash-priority-order-when-using-multiple-config-files/80507/5 "2017-05-01T19:55:48Z")

</div>

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