Two Logstash instances on same Docker container

Am wondering if there is a way two logstash processes with separate configurations can be run on a single Docker container. My setup has a Logstash process using file as input sending events to Redis and from there to second Logstash process and over to custom http process. So, Logstash --> Redis --> Logstash --> Http. Was hoping to keep the two Logstash instances and Redis on the same Docker container. Am still new to Docker & Would highly appreciate any inputs / feedback on the same.

This is more of a Docker question than a Logstash question. Logstash itself has no problems running in multiple instances on the same machine as long as you segregate pid file, log files, and so on via the startup arguments.

1 Like