Skip to content

Problems with nested fields #10321

Answered by jszwedko
ottramst asked this question in Q&A
Dec 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @ottramst !

I think you need to quote the access the the availability-zone field since it has a special character (-). This would look like ."availability-zone". This is needed because VRL also uses - for subtraction and so otherwise interprets what you have as .availability - zone where zone is expected to be a defined variable.

https://vector.dev/docs/reference/vrl/expressions/#path has docs about the allowed characters in a field name. Any other ones require quoting the field.

Let me know if this doesn't help!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ottramst
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