-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
route_to_stream pipeline function silently dropping messages #21106
Comments
Feedback from Arch:
|
Thanks @kingzacko1 for the summary! I am wondering: If 3 + 4 get done (which are cheap to build), which will present a very clear warning that messages will be dropped if you pause the one and only target stream for a message, then maybe 2 is not that urgent to implement.
Just a thought: If this gets implemented, maybe it should get its own config option ("Log Stream Routing Failures"). This would allow people to turn it off, and also document the fact that this behavior exists. /cc @Graylog2/architecture |
IMO Streams having an "off" state that blocks messages routed from pipelines seems like a trap for users without a benefit. I can understand the on/off controlling stream rules (the point of entry to pipeline flow), but impacting pipeline routing as it does means pressing this button has an impact the user can't anticipate without looking at every other active pipeline. If we altered the on/off state to not impact pipeline routing (and changed the name of the column from "status" to "Stream Rules"), then we wouldn't need this exception handling. |
Expected Behavior
When
route_to_stream
is called for a paused stream and theremove_from_default
argument is set, an exception should be raised to indicate that processing has failed.Current Behavior
When
route_to_stream
is called for a paused stream and theremove_from_default
argument is set, the message will not be added to the target stream and it will be removed from the default stream, resulting in the message being silently lost.Possible Solution
Update
route_to_stream
logic to raise an error instead of silently dropping messages from all streams.The text was updated successfully, but these errors were encountered: