Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.38 KB

time_parser.md

File metadata and controls

20 lines (14 loc) · 1.38 KB

time_parser operator

The time_parser operator sets the timestamp on an entry by parsing a value from the record.

Configuration Fields

Field Default Description
id required A unique identifier for the operator
output required The connected operator(s) that will receive all outbound entries
parse_from required A field that indicates the field to be parsed as JSON
layout_type strptime The type of timestamp. Valid values are strptime, gotime, and epoch
layout required The exact layout of the timestamp to be parsed
preserve false Preserve the unparsed value on the record
on_error send The behavior of the operator if it encounters an error. See on_error

Example Configurations

Several detailed examples are available here.