Skip to main content

Parse Timestamp

Overview​

The Parse Timestamp processor parses event time values from logs and sets either the event time or observed_time.

It supports both strptime patterns and epoch-based timestamp formats.

Supported types: Logs

Configuration​

ParameterTypeDefaultRequiredDescription
field_typestring—YesSource type: attribute, body, or resource.
fieldstring—ConditionalSource key when needed by selected field_type.
format_typestring—YesTimestamp format type: strptime, epoch_seconds, epoch_millis, epoch_micros, or epoch_nanos.
formatstring—ConditionalRequired when format_type is strptime.
timezonestring—NoOptional IANA timezone when source value has no timezone.
target_fieldstringtimeNoTarget field: time or observed_time.

Example Configuration​

{
"field_type": "attribute",
"field": "timestamp",
"format_type": "strptime",
"format": "%Y-%m-%dT%H:%M:%S%z",
"timezone": "UTC",
"target_field": "time"
}