-
My JSON events log their timestamp as a unix timestamp in miliseconds, i.e. With Can anyone suggest a way to parse these correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think the easiest thing to do would be to convert it to an integer ( |
Beta Was this translation helpful? Give feedback.
-
Thanks @jszwedko - I'd forgotten about the I did get it working by dividing it by 1000 and then using The following is what I came up with that worked as desired:
|
Beta Was this translation helpful? Give feedback.
I think the easiest thing to do would be to convert it to an integer (
parse_int
) and use https://vector.dev/docs/reference/vrl/functions/#from_unix_timestamp. Ideally you could parse the string too usingparse_timestamp
but the library we use for date parsing doesn't support it.