-
Hello, it seems like there is some confusion (maybe on my part) when trying to handle a failure in
parse_grok is marked as fallible, so I'm not sure why this expression can't fail. We have messages that are not formatted properly and failing this grok parsing (which is currently expected as our app has a mix of 'formatted' and 'un-formatted' logging causing the failures), causing logs in vector like this:
For now I was just trying to naively transform the level to info to avoid other processing we have later on which would ship these messages with an incorrect level downstream. I am running vector in a docker container:
Using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @kvberge ! The issue here is that you are using a
|
Beta Was this translation helpful? Give feedback.
Hi @kvberge !
The issue here is that you are using a
!
when callingparse_grok()
. That is, you are usingparse_grok!()
rather thanparse_grok()
. The!
tells VRL to abort if the function call fails and so the??
expression you have here will never be executed. Instead you likely want: