Skip to content

parse multiline xmlns in json #16000

Answered by spencergilbert
OlesyaShell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @OlesyaShell 👋 ,

How can i parse this field?

You can't to_string() an Array, the possible inputs can be <integer | float | boolean | string | timestamp | null> (ref)

You could use join() to convert the Array to a String and then do additional transformations.

If an error occurs in the configuration file when parsing an event, then the event passes without parsing. How can I make the event honor other transformations in program.vrl ?

The default for drop_on_error is false which is why the events are passed through unchanged. You can set that to true to drop the event, or use reroute_dropped to send them to an alternative component for separate transformations or further review.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jszwedko
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