Re: [rsyslog] logrotate does not work when rsyslog logs via external program (omprog)

2020-05-30 Thread David Lang via rsyslog
ivian Subject: Re: [rsyslog] logrotate does not work when rsyslog logs via external program (omprog) I would agree that a single control point is more desirable than coordination attempts between rsyslog, logrotate, and an external script. I would also comment that in cases where we inte

Re: [rsyslog] logrotate does not work when rsyslog logs via external program (omprog)

2020-05-26 Thread John Chivian via rsyslog
I would agree that a single control point is more desirable than coordination attempts between rsyslog, logrotate, and an external script. I would also comment that in cases where we integrate rsyslog and logrotate, we always have logrotate perform an rsyslog full stop and start, not just a re

Re: [rsyslog] logrotate does not work when rsyslog logs via external program (omprog)

2020-05-26 Thread Joan Sala via rsyslog
Logrotate is rotating the file, but not signaling your Python script when this happens. So yes, as you have noticed, the rotation will not work correctly with this setup. You have two options. First and preferred option I think: forget about logrotate and make your Python script rotate the logs by

[rsyslog] logrotate does not work when rsyslog logs via external program (omprog)

2020-05-25 Thread Fourhundred Thecat via rsyslog
Hello, in my /etc/rsyslog.conf, I am calling external script to handle mail.* logging: mail.*action(type="omprog" name="blacklist-postfix" binary="/usr/local/sbin/postfix.py" template="long-iso") This custom script processes logs, and writes to /var/log/mail/mail.log Everything works w