This repo contains
- a fluentd image configured with elasticsearch output plugin
- a compose file and environment for setting up a containerized logging infrastructure
docker-compose up
Use fluentd driver to forward console output
docker run --log-driver=fluentd --log-opt fluentd-address=localhost:24224 hello-world
Use fluent-cat
to forward console output
echo '{"message":"hello"}' | fluent-cat debug.log
Based on this article