Logstash second conf file is not taking

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"

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.

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