Sha256: 2189175492bd8a6895dbca18c7e251d1e0c2ede669d2117d474c7f330ce973ae
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
# fluent-plugin-dockergelf [Fluentd](https://fluentd.org/) filter plugin to handle gelf format log in docker(kubenetes) The log looks like ``` {"log":"{"_instance_id":"","_microservice_id":"","host":"","level":4,"short_message":"Some log information.","timestamp":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: ```ruby gem "fluent-plugin-dockergelf" ``` And then execute: ``` $ bundle ``` ## Release new version You can release new version of this plugin: ``` $ rake release ``` gem is pushed to https://rubygems.org/gems/fluent-plugin-dockergelf ## Copyright * Copyright(c) 2018- Ericsson AB
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-dockergelf-0.2.2 | README.md |