Closed bewing closed 1 year ago
I think it should be doable to add a knob under the output, something like ignore-empty: true
would like this setting added also.
@bewing , @Sparc0 #61 makes the drop processor remove matching messages from the events list. The messages won't make it to the downstream outputs.
I am dealing with a system that is mapping an internal database to arbitrary path elements in gNMI where keys are part of the elem path string, instead of actually being filterable keys. As a result, I am doing a LOT of filtering on events, and in some cases, end up with messages (lists of Events) that are comprised of just empty events after using the
event-drop
filter to delete unwanted data. Thefile
output looks like this:Is it possible to completely remove empty events from the message, and drop/suppress empty messages instead of writing them to outputs further downstream?