Skip to content

parse_grok failing on proper ISO8601 timestamp #15802

Answered by Djeezus
Djeezus asked this question in Q&A
Discussion options

You must be logged in to vote

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:

$ . = { "@timestamp": "2023-01-10T05:05:05.55Z", "@metadata": { "beat": "filebeat", "type": "_doc", "version": "7.9.2" }, "host": { "name": "somehostname" }, "message": "2023-01-10 10:03:30.745 blah blah blah blah" }
{ "@metadata": { "beat": "filebeat", "type": "_doc", "version": "7.9.2" }, "@timestamp": "2023-01-10T05:05:05.55Z", "host": { "name": "somehostname" }, "me…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Djeezus
Comment options

@jszwedko
Comment options

Comment options

You must be logged in to vote
1 reply
@jszwedko
Comment options

Answer selected by jszwedko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants