-
Hello, Thanks for the awesome project! I have a slight problem with using VRL with nested fields (mainly renaming). Configuration
Please note the Problems start when I start adding other renames like
Also can confirm that if the Not sure where to go from here, any help and/or guidance will be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ottramst ! I think you need to quote the access the the 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! |
Beta Was this translation helpful? Give feedback.
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
wherezone
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!