Timestamp literal in tests #18791
Unanswered
tadej0mins
asked this question in
Q&A
Replies: 3 comments 2 replies
-
You should be able to use the syntax shown here: https://vector.dev/docs/reference/vrl/expressions/#timestamp |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just ran into this too. Looks like log_fields only tries to parse properties as strings, bools, ints, or floats AFAICT, this will be possible with VRL test inputs once #19107 is included in a release. I haven't found a good way to pass timestamps to tests in the meantime. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is there a way to do this with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I got the following
vector.yaml
configuration:I want to test
vector_internal_format
transformation and I don't know how to specify timestamp input (under log_fields) to be of a typeTimestamp
(so thatformat_timestamp
function would not throw an error:expected timestamp, got string
).Beta Was this translation helpful? Give feedback.
All reactions