Thank you. It's an option to consider but it would be nice if there was a
more direkt option.

Best regards Johan

Den tis 11 mars 2025 21:11John Chivian <jchiv...@chivian.com> skrev:

> Create a ruleset called “do_discard” as follows…
>
> ruleset(name=“do_discard”) { action(type=“omfile” file=“/dev/null”
> name=“events_discarded”) stop }
>
> Use that ruleset (call do_discard) instead of the “stop” directive
> elsewhere in the configuration.
>
> Enable impstats and look for name=“events_discarded”.  The statistics will
> show the number of messages “processed” by the ruleset.
>
> Yes, it is a little extra processing, but I think it’s the only way to get
> what you’re after.  The maintainers will know for sure.
>
> Regards,
>
>
> > On Mar 11, 2025, at 12:43, Johan Ryberg via rsyslog <
> rsyslog@lists.adiscon.com> wrote:
> >
> > Hi,
> >
> > Is there any way of collecting metrics of messages that have been
> filtered
> > "stop"?
> >
> > I suppose I can compare the amount of incoming and outgoing messages but
> it
> > would be nice to know exactly how many that was discarded by choice.
> >
> > Best regards Johan
> > _______________________________________________
> > rsyslog mailing list
> > https://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com/professional-services/
> > What's up with rsyslog? Follow https://twitter.com/rgerhards
> > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
>
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to