yalp.parsers.timestampΒΆ

Used to set the event time_stamp from another field in the event.

The parser supports the following configuration items:

field
The field to parse for a datetime. If the field is not found in the event, the event will be skipped.
out_field
The field to write the parsed time stamp to. Defaults to time_stamp.
timestamp_fmt
The date format string to format the time stamp. Defaults to %Y-%m-%dT$H:%M:%S.
to_utc
Convert the timestamp to UTC after parsing. Defaults to True.
type
A type filter. Events not of this type will be skipped.

Examaple configuration.

parsers:
  - timestamp:
      field: date_field