When running unit tests for dropped events; how can I disable the stderr message "ERROR transform"? #17312
-
I have a unit test that uses a log event that is supposed to:
The test works as expected except that it prints out to stderr the details of the dropped event. Is there a way to configure the test so that it's aware that the transform will drop the event and not print to stderr during testing? The stderr that I'm referring to:
I want to have tests that ensure the messages that should be dropped are correctly dropped. The behavior of parse_key_value wasn't exactly as I had expected but I was unaware until testing the failure states. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't believe that's an existing feature - have you tried redirecting STDOUT vs STDERR? |
Beta Was this translation helpful? Give feedback.
Got it, definitely not supported today - please open a feature request issue with the use case and details you provided. Thanks!