a docker container to ship logs to rabbitmq.
sudo docker pull jnyryan/logstash-shipper sudo docker run \ -d \ --name ls1 \ -e RMQ_HOST:127.0.0.1 \ -v /var/log/:/var/log/ \ jnyryan/logstash-shipper
-d = run in detached mode
--name = the name of instance in case you want multiple running
-v = the host directory to mount in the container. This is where LogStash looks for logs
See the full code on github
added user defined endpoint for RabbitMq - this should at least make it useful!!!
I need to add some changes here:
- ENVVAR for the Remote RabbitMQ Location
- Ability to pass in a users own logstash.conf
- A text interface so you can query it's working. Best way now is to look at rabbitmq and check for connections