# Logstash second conf file is not taking

**URL:** <https://discuss.elastic.co/t/logstash-second-conf-file-is-not-taking/327354>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [March 9, 2023, 12:20pm UTC](https://discuss.elastic.co/t/logstash-second-conf-file-is-not-taking/327354 "2023-03-09T12:20:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekambaram\_varathan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ekambaram_varathan/32/117094_2.png) [@ekambaram\_varathan](https://discuss.elastic.co/u/ekambaram_varathan)\
**Post date:** [March 9, 2023, 12:20pm UTC](https://discuss.elastic.co/t/logstash-second-conf-file-is-not-taking/327354/1 "2023-03-09T12:20:47Z")

</div>

I am using docker-compose version: v2.9.0. and version: '3.7' in docker-compose yml file and using the below command in logstash section., when i see the logstash logs only its taking the first conf file, second conf file value is not coming,,, Please help me to resolve this problem

```
 command:
  - "sh"
  - "-c"
  - "logstash -f /usr/share/logstash/pipeline/test1.conf ; logstash -f /usr/share/logstash/pipeline/test2.conf"

```

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [March 10, 2023, 6:47pm UTC](https://discuss.elastic.co/t/logstash-second-conf-file-is-not-taking/327354/2 "2023-03-10T18:47:42Z")

</div>

Hi @ekambaram_varathan,  
Looks like you are running two independent logstash commands. The semi-colon tells the interpreter to finish executing the first command and then to execute the second command. Those two logstash commands will run independently of each other.

---

<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:** [April 7, 2023, 6:48pm UTC](https://discuss.elastic.co/t/logstash-second-conf-file-is-not-taking/327354/3 "2023-04-07T18:48:25Z")

</div>

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