Skip to content
Dynamic filtering of kubernetes logs according to pod labels
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/fluent/plugin
test
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
fluent-plugin-kubernetes-log-level.gemspec

README.md

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
You can’t perform that action at this time.