Skip to content

How can I nest entire event inside a single json field while remapping in vrl? #22035

Closed Answered by sainad2222
sainad2222 asked this question in Q&A
Discussion options

You must be logged in to vote
.event, _err = merge({}, .)
template = {}
template.event = .event
. = template
.source_type = "prometheus"

Thanks to britton on discord

Replies: 1 comment

Comment options

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