Fluentd filter plugin to filter messages according to log level
This plugin allows setting a kubernetes label to your pods, and have fluentd filter logs containing a level value lower then the level indicated by the label.
$ gem install fluent-plugin-kubernetes-log-level
Add following line to your Gemfile:
gem "fluent-plugin-kubernetes-log-level"
And then execute:
$ bundle
Configuration options for fluent.conf are:
log_level_label
- kubernetes label name for setting current log levellog_level_key_label
- kubernetes label name for getting current log level from recorddefault_log_level_key
- default key in log record to indicate the current record's leveldefault_logging_level
- default logging levels for kubernetes services missing alog_level_label
- Copyright(c) 2018 - Soluto
- License
- Apache License, Version 2.0