date

date #

CategoryScope
Parsingrecord

The “date” pipeline processor: parse a timestamp from a field of the current record into the record’s canonical Timestamp (OTel: the time the event occurred, source clock).

Configuration #

FieldTypeDefaultDescription
fieldstringSource field to read from.
formatsliststringTimestamp layouts tried in order.
timezonestringTimezone assumed when parsing or rendering.
ignore_missingboolDo not fail when the source field is missing.
ignore_failureboolDo not fail the record when processing errors; the record passes through unchanged.
tagstringTag appended to the record when processing fails.

Example #

processor:
  - for_each:
      processor:
        - date:
            field: timestamp
            layouts:
              - "yyyy-MM-dd HH:mm:ss"
              - "ISO8601"
            timezone: Asia/Shanghai
Edit Edit this page