# 2 configurations for logstash

**URL:** https://discuss.elastic.co/t/2-configurations-for-logstash/279107
**Category:** Logstash
**Created:** [July 19, 2021, 7:54pm UTC](https://discuss.elastic.co/t/2-configurations-for-logstash/279107 "2021-07-19T19:54:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![creativeguitar](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@creativeguitar](https://discuss.elastic.co/u/creativeguitar)
#### Post date: [July 19, 2021, 7:54pm UTC](https://discuss.elastic.co/t/2-configurations-for-logstash/279107/1 "2021-07-19T19:54:44Z")

</div>

I have 2 configs under /etc/logstash/conf.d/

If I load the configs individually  
/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/config1.conf  
and then  
/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/config2.conf

both configs load great.

Also if I leave only 1 config inside conf.d directory and start logstash with  
systemctl start logstash  
the config loads great.

if I leave both configs and start logstash with "systemctl start logstash" then all the config parsing gets messed up and I end up with extra columns on both indexes.

have you ever seen anything like this? I dont even know how to start researching this problem.

---

<div class="post-metadata">

### Author: ![creativeguitar](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@creativeguitar](https://discuss.elastic.co/u/creativeguitar)
#### Post date: [July 19, 2021, 8:39pm UTC](https://discuss.elastic.co/t/2-configurations-for-logstash/279107/2 "2021-07-19T20:39:22Z")

</div>

after finding this post [Logstash mixing up two configuration files?! - #4 by RonGros](https://discuss.elastic.co/t/logstash-mixing-up-two-configuration-files/238540/4)  
I defined 1 pipeline per config file and now its working correctly.

---

<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 16, 2021, 8:40pm UTC](https://discuss.elastic.co/t/2-configurations-for-logstash/279107/3 "2021-08-16T20:40:11Z")

</div>

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