redact

redact #

CategoryScope
Governancerecord

The “redact” pipeline processor: mask sensitive substrings (phone numbers, national ids, cards, emails or arbitrary regexes) in the configured string fields before the record is shipped or stored.

Configuration #

FieldTypeDefaultDescription
fieldsliststringSource fields to read from.
patternsliststringExtraction patterns tried in order; the first match wins.
replacementstring“***”Replacement text used by the substitution.

Example #

processor:
  - redact:
      fields: ["message", "tags"]
      patterns: ["%{IP:client} %{WORD:verb} %{URIPATHPARAM:request}"]
      replacement: "replacement"
Edit Edit this page