fluent-plugin-dockergelf
Fluentd filter plugin to handle gelf format log in docker(kubenetes)
The log looks like
{"log":"{"_instance_id":"","_microservice_id":"","host":"","level":4,"":"Some log information.","":1539143207.2754333,"version":"1.1"}","stream":"stderr","time":"2018-10-10T05:05:17.102912076Z"}
This filter will use the timestamp inside as the timestamp. create a new field called logtime as the timestamp from the docker. move the short_message to the log field.
The latest kubernetes_metadata filter does not support the inner json process anymore. So this filter is recommended to put between detect_exceptions and kubernetes_metadata.
<filter kubernetes.**>
@type dockergelf
</filter>
Installation
RubyGems
$ gem install fluent-plugin-dockergelf
Bundler
Add following line to your Gemfile:
gem "fluent-plugin-dockergelf"
And then execute:
$ bundle
Release new version
You can release new version of this plugin:
$ rake release
You can copy and paste generated documents here.
Copyright
- Copyright(c) 2018- Ericsson AB