Parsing a timestamp to use with CW Log Insights functions

Viewed 3298

Attempting to use a built-in Cloudwatch Log function like "date_floor" with a 8601 timestamp string like "2020-03-24T19:03:34.645Z" gives back an "Invalid date" error in Cloudwatch Log Insights.

Does anyone know what is required to parse/cast timestamps that appear within your logs so they can be used with the built-in date/time functions?

My end goal is to compare a timestamp that appears within my logs with the built-in @ingestionTime field.

0 Answers
Related