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


(red der) #1

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?


(Magnus B├Ąck) #2

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?


(red der) #3

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


(red der) #4

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!


(system) #5

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