Low commit activity in last 3 years
Fluentd redaction filter plugin for anonymize specific strings in text data.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 11.0
~> 3.3, >= 3.3.3
~> 1.0, >= 1.0.5

Runtime

>= 1.0, < 2
 Project Readme

Redaction filter plugin for Fluentd

Build License: MIT Gem Version

Requirements

fluent-plugin-redaction fluentd ruby
>= 0.1.0 >= v0.14.0 >= 2.4

Overview

Redaction filter plugin that is used to redact/anonymize data in specific record fields.

Installation

Install from RubyGems:

$ gem install fluent-plugin-redaction

Configuration

  <filter **>
    @type redaction
    <rule>
      key message
      value myemail@mail.com
      replace "****@mail.com"
    </rule>
    <rule>
      key message
      value mycardnumber
    </rule>
    <rule>
      key message
      pattern /my_regex_pattern/
      replace "[REDACTED]"
    </rule>
  </filter>

Configuration options

key

Specified field in a record. Replacement will happen against the value of the selected field.

value

Specific value that is searched in the value of the selected field. Replace matches with replace value.

pattern

Regular expression, on matches in the specified record field data will be replaced with the value of replace field.

replace

The replacement string on value/pattern matches. Default value: [REDACTED]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request