decode_duration

decode_duration #

CategoryScope
Transformrecord

The “decode_duration” pipeline processor: convert a Go duration string like “5s” or “1m30s” into a numeric duration (milliseconds by default).

Configuration #

FieldTypeDefaultDescription
fieldstringSource field to read from.
formatstringPreset format selector (e.g. log format).

Example #

processor:
  - decode_duration:
      field: "message"
      format: "format"
Edit Edit this page