You can use the "output" option for that, if I recall correctly: https://www.rsyslog.com/doc/v8-stable/configuration/modules/omprog.html#output
Regards On Tue, Jul 11, 2023, 07:11 Fourhundred Thecat via rsyslog < rsyslog@lists.adiscon.com> wrote: > Hello, > > I am using custom python script to process logs, and ban offending IPs: > > local0.* action(type="omprog" name="asterisk" > binary="/usr/local/sbin/asterisk.py") > > When my script generates some error, I don't see it anywhere in the logs > (but I do see python errors when I run my script manually with given input) > > Do I have to redirect the errors somewhere explicitly ? > > thanks, > _______________________________________________ > 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.