No commit activity in last 3 years
No release in over 3 years
Fluent plugin Output filer to reject key pair
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0
~> 0

Runtime

~> 0.10
 Project Readme

#fluent-plugin-data-rejecter, a plugin for Fluentd

Overview

Output plugin to reject key pairs

  • reject key pairs
  • remove tag prefix
  • add tag prefix

Configuration

Parameters

  • remove_prefix

    remove tag if tag matches this pattern

  • add_prefix

    add tag for re-emit.

  • reject_keys

    reject key pair for re-emit.

Example

<match abc.def.**>
    type          data_rejecter
    remove_prefix abc
    add_prefix    123
    reject_keys   key key1
</match>

input

abc.def.tag: {"dat":"message", "key":"value", "key1":"value2", "key2":"value2", ....}

output

123.def.tag: {"dat":"message", "key2":"value2", ....}

remove_prefix (complete matching)

config | tag #=> result

abc  | abc.def.tag #=> removed
abc. | abc.def.tag #=> removed
ab   | abc.def.tag #=> not removed

Copyright

Copyright (c) 2014 Hirotaka Tajiri. See LICENSE for details.