Fluentd filter plugin for Docker logs
OTHER License
This Gem is a Fluentd plugin filter that helps to manage Docker logs. When enabled, it main functionality is to check and convert quoted JSON log messages into real JSON format, e.g:
From
{"source":"stdout","log":"{\"msg\":12345}","container_id":"d6baf71","container_name":"/furious_babbage"}
to
{"source":"stdout","log":{"msg":12345},"container_id":"d6baf71","container_name":"/furious_babbage"}
$ gem install fluent-plugin-docker
$ fluent-gem install fluent-plugin-docker
In your Fluentd configuration file, the Docker plugin filter can be used as follows:
<source>
type forward
port 24224
bind 0.0.0.0
</source>
<filter docker.**>
type docker
</filter>
<match **>
type stdout
</match>
Bug reports and pull requests are welcome on GitHub at https://github.com/edsiper/fluent-plugin-docker.
The gem is available as open source under the terms of the Apache v2 License