-
'lo all, I'm trying to parse a timestamp in a field at beginning of line, as such:
And my transform looks like this:
When this is processed by Vector, it gives following error:
What am I missing here ? It seems to be a valid ISO8601 timestamp, as mentioned here Also, is this efficient, or should I try doing it with VRL conditions ? I had also tried using the VRL playground , but it didn't recognize the parse_grok function
grtz & thnx |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @Djeezus , It looks like the timestamp in your message, The playground doesn't currently support |
Beta Was this translation helpful? Give feedback.
-
Hi Jesse, indeed, the @ character was the issue in this case ... but now it seems there is a difference in "to_timestamp" and "parse_grok" regarding what a TIMESTAMP_ISO8601 actually should look like. In VRL tested:
I don't mind not bloating "to_timestamp" with too many formats, but it should at least agree with "parse_grok" when it comes to formatting, no ? thnx & grtz |
Beta Was this translation helpful? Give feedback.
Hi Jesse,
indeed, the @ character was the issue in this case ... but now it seems there is a difference in "to_timestamp" and "parse_grok" regarding what a TIMESTAMP_ISO8601 actually should look like.
"parse_grok" seems to honor TIMESTAMP_ISO8601, but "to_timestamp" does not, or am I missing something here ?
In VRL tested: