Timestamp
Add the current UTC time in the specified format to the record.
Example
This example shows how to use the Timestamp transformation to add the current UTC time to a record in a specified format.
{
"operation": "timestamp",
"arguments": {
"key": "timestamp_field",
"format": "rfc3339"
}
}
Given the input record:
{
"existing_field": "some_value"
}
The output record will be:
{
"existing_field": "some_value",
"timestamp_field": "2023-04-18T12:34:56Z"
}
Supported Formats
The Timestamp transformation supports the following formats:
- rfc3339: RFC 3339 format (e.g., "2023-04-18T12:34:56Z")
- unix: Unix timestamp in seconds
- unix_milli: Unix timestamp in milliseconds
- unix_nano: Unix timestamp in nanoseconds
- iso8601: ISO 8601 format (e.g., "2023-04-18T12:34:56.000Z")