fluent-plugin-redaction | fluentd | ruby |
---|---|---|
>= 0.1.0 | >= v0.14.0 | >= 2.4 |
Redaction filter plugin that is used to redact/anonymize data in specific record fields.
Install from RubyGems:
$ gem install fluent-plugin-redaction
<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>
Specified field in a record. Replacement will happen against the value of the selected field.
Specific value that is searched in the value of the selected field. Replace matches with replace
value.
Regular expression, on matches in the specified record field data will be replaced with the value of replace
field.
The replacement string on value/pattern matches. Default value: [REDACTED]
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request