fluent-plugin-docker 0

Fluentd filter plugin for Docker logs

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

Related Repositories

fluent-plugin-docker-metrics

fluent-plugin-docker-metrics

Fluentd plugin to collect Docker metrics ...

fluent-plugin-mesosphere-filter

fluent-plugin-mesosphere-filter

Fluentd Filter to add metadata for Mesos and Chronos tasks running in docker containers ...

fluent-plugin-docker-tag-resolver

fluent-plugin-docker-tag-resolver

[DEPRECATED] You should use logging drivers https://docs.docker.com/reference/logging/overview/ /fluentd plugin to resolve container name from docker container-id in record tags. ...

fluent-plugin-docker

fluent-plugin-docker

Fluentd filter plugin for Docker logs ...


Top Contributors

edsiper