The python script should trap its own stderr (and/or stdout) and write it to a 
separate file.



> On Jan 15, 2021, at 12:04, Fourhundred Thecat via rsyslog 
> <[email protected]> wrote:
> 
> Hello
> 
> I am using omprog, to send logs to my script:
> 
> mail.*   action(type="omprog" binary="/usr/bin/blacklist.py ... )
> 
> If my script generates errors, where can I see these errors? I looked in
> my main syslog log file, but there is nothing.
> 
> I can run my script from commandline, and see the error, but not when it
> is run by syslog.
> 
> 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.

Reply via email to