Transforms
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.
Code
Given the input record:
Code
The output record will be:
Code
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")
Last modified on