I am trying to change the timestamp of a log with the following pipeline rule:
rule "change_timezone" when true then let original_date = parse_date(to_string($message.timestamp), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); let new_date = parse_date(to_string($message.timestamp), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "en_US", "America/Bogota"); set_field("original_date", original_date); set_field("timestamp", new_date); end
When I try this rule in the Simulator it works fine.
However this rule does not work on logs in the connected Stream.
The pipeline rule says there are many errors (one log = one error).
So I don’t know what’s wrong and I don’t know how to get errors in order to investigate.