kmiklas
(Keith Miklas)
August 8, 2019, 3:03pm
1
Logstash is running in a docker container, and I'd like to list its plugins.
For a VM or metal installation, Here is the command [Ref 1]
sudo bin/plugin list
How do I run this command in a Docker container? I've tried the following, but no luck: [Ref 3]
sudo docker exec -it docker-elk_logstash_1 plugin list
sudo docker exec -it docker-elk_logstash_1 bin/plugin list
sudo docker exec -it docker-elk_logstash_1 /bin/plugin list
Nope.
EDIT:
I managed to shell into my container, like so:
sudo docker exec -it docker-elk_logstash_1 bash
And found bin/logstash-plugin
. The following command successfully showed plugins:
bash-4.2$ pwd
/usr/share/logstash/bin
bash-4.2$ ./logstash-plugin list
References
https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/listing-removing.html
http://phase2.github.io/devtools/common-tasks/ssh-into-a-container/
https://docs.docker.com/engine/reference/commandline/exec/
kmiklas
(Keith Miklas)
August 8, 2019, 3:17pm
2
Seems the problem was that the docs are outdated. It's now named ``logstash-plugin".
sudo docker exec -it docker-elk_logstash_1 bin/logstash-plugin list
Was successful.
I debugged it by shelling into the container, like so:
sudo docker exec -it docker-elk_logstash_1 bash
Sniffed around, and found bin/logstash-plugin
. The following command successfully showed plugins:
bash-4.2$ pwd
/usr/share/logstash/bin
bash-4.2$ ./logstash-plugin list
system
(system)
Closed
September 5, 2019, 3:17pm
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.