Skip to content
Discussion options

You must be logged in to vote

Hi @lzwaan !

This should work for you:

.ssid_statuses =  map_values(object!(.ssid_statuses)) -> |status| { map_values(array!(status)) -> |status| { status.ssid = "[REDACTED]"; status } }

The first map_values iterates over the elements in ssid_statuses. The second map_values iterates over each element in each ssid_status.

It can be useful to use the VRL REPL (vector vrl) to develop VRL programs, if you aren't already familiar with it.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@leshow
Comment options

@jszwedko
Comment options

@leshow
Comment options

@leshow
Comment options

Answer selected by lzwaan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants