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_typestringYesSource type: attribute, body, or resource.
fieldstringConditionalSource key when needed by selected field_type.
format_typestringYesTimestamp format type: strptime, epoch_seconds, epoch_millis, epoch_micros, or epoch_nanos.
formatstringConditionalRequired when format_type is strptime.
timezonestringNoOptional 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"
}