pblittle / docker-logstash

Docker image for Logstash 1.4
https://hub.docker.com/r/pblittle/docker-logstash
MIT License
237 stars 90 forks source link

turn off elastic search and kibana #77

Closed joshuacox closed 9 years ago

joshuacox commented 9 years ago

Is there a way to shut these two down instead of having them start when I have other containers supplying those functions?

pblittle commented 9 years ago

@joshuacox, thanks to a contribution from @aidan-, you are able to selectively run services.

Unfortunately, I haven't had time to document the feature. Here is the gist from the original PR:

At the moment it supports 4 modes of operation:

1. agent - only run the Logstash agent
2. configtest - run the agent with --configtest
3. web - only run the Kibana web interface
4. default, nothing, anything else. - run both the agent and web

So, for example, to only run the Logstash agent, you would simply use the following docker run command:

docker run --rm -ti --name log -p 9292:9292 pblittle/docker-logstash agent

I hope this helps. Let me know if anything else comes up.

joshuacox commented 9 years ago

awesome thanks!

pblittle commented 9 years ago

@joshuacox glad to help. Let me know if anything else comes up.