No commit activity in last 3 years
No release in over 3 years
Fluentd plugin to filter records without essential keys
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0.9.2

Runtime

>= 0.12.0
 Project Readme

fluent-plugin-has-keys

This fluentd plugin is to filter records without the given keys.

Usage

fluentd.conf

<filter **>
  @type has_keys
  keys  hoge, foo
</filter>

Input messages:

  2016-05-03T11:22:33 test {"hoge" => "fuga", "foo" => "bar"}
  2016-05-03T11:22:34 test {"hoge" => "fuga"}
  2016-05-03T11:22:35 test {"foo" => "bar"}
  2016-05-03T11:22:36 test {"spam" => "ham"}
  2016-05-03T11:22:37 test {"hoge" => "fuga", "foo" => "bar", "spam" => "ham"}

Output messages:

  2016-05-03T11:22:33 test {"hoge" => "fuga", "foo" => "bar"}
  2016-05-03T11:22:37 test {"hoge" => "fuga", "foo" => "bar", "spam" => "ham"}

TODO

  • Check whether this plugin works under a general operation.

Copyright

Copyright (c) 2016 Trickey Released under the MIT license https://opensource.org/licenses/MIT