No commit activity in last 3 years
No release in over 3 years
Use kubernetes labels to set log level dynamically.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 12.0
~> 3.0

Runtime

>= 0.14.10, < 2
 Project Readme

Build Status

fluent-plugin-kubernetes-log-level

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.

Installation

RubyGems

$ gem install fluent-plugin-kubernetes-log-level

Bundler

Add following line to your Gemfile:

gem "fluent-plugin-kubernetes-log-level"

And then execute:

$ bundle

Configuration

Configuration options for fluent.conf are:

  • log_level_label - kubernetes label name for setting current log level
  • log_level_key_label - kubernetes label name for getting current log level from record
  • default_log_level_key - default key in log record to indicate the current record's level
  • default_logging_level - default logging levels for kubernetes services missing a log_level_label

Copyright

  • Copyright(c) 2018 - Soluto
  • License
    • Apache License, Version 2.0