mutate

mutate #

CategoryScope
Transformrecord

The “mutate” pipeline processor: field-level mutations on the current record, covering the Logstash mutate filter surface. Actions apply in a fixed order: rename, copy, add, convert, replace, lowercase, uppercase, strip, remove.

Configuration #

FieldTypeDefaultDescription
patternstringExtraction pattern; %{NAME} placeholders capture into fields.
tostringDestination of the rendered value.

Example #

processor:
  - for_each:
      processor:
        - mutate:
            rename:
              lvl: log_level
            add:
              env: prod
            convert:
              status_code: integer
            lowercase:
              - log_level
            remove:
              - tmp_field
Edit Edit this page