How can I see what command the logstash container is running?

https://www.elastic.co/guide/en/logstash/6.2/docker-config.html

I know where the container expects pipelines to be but I need to know exactly what logstash commands its running to execute them so I can debug

The Dockerfile for the container is built from templates it looks like from the github page so then how do I see what the heck this container is doing?

Run ps aux just like you'd do to inspect a process not running inside a container? Or is Logstash shutting down so quickly that it won't get picked up by ps?

Right its shutting down immediately and the last docker log I see is:
[2018-02-21T19:23:17,565][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}

So no useful errors there

I tried running the container with "bash", exec-ing into it, and running logstash -f /usr/share/logstash/pipeline/logstash.conf directly and that works

So I don't know where the break down is

Ok figured it out, I had a bad ES endpoint configured.

and I can see its runnign "/usr/local/bin/docker-entrypoint"

THanks for the help!

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