Skip to content

Transforming structure #21472

Answered by jszwedko
CR-OrenYekutieli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CR-OrenYekutieli ! For setting dynamic keys, the set function must be used like:

result = set!(result,  [key], val }

See https://vector.dev/docs/reference/vrl/functions/#set for details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CR-OrenYekutieli
Comment options

Answer selected by CR-OrenYekutieli
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