Running multiple logstash configuration files in a single docker run command


(Senthil) #1

How to run multiple logstash.conf files for example (first-pipeline.conf and second-pipeline.conf) in a single logstash docker run command in linux environment(centos7)


(Toby McLaughlin) #2

I would use a bind-mount to mount a pipelines.yml file at /usr/share/logstash/config/pipelines.yml with contents like this:

---
- pipeline.id: alpha
  path.config: /pipelines/alpha
- pipeline.id: bravo
  path.config: /pipelines/bravo

Then I'd use another bind-mount to place my pipeline configurations at /pipelines inside the container.