No commit activity in last 3 years
No release in over 3 years
fluentd plugin to handle and format Docker logs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0

Runtime

~> 1.0
 Project Readme

fluent-plugin-docker

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"}

Installation

Native gem

$ gem install fluent-plugin-docker

Fluentd gem

$ fluent-gem install fluent-plugin-docker

Usage

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>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/edsiper/fluent-plugin-docker.

License

The gem is available as open source under the terms of the Apache v2 License