Split sympa logs
Disclaimer: this has been used in production on a Debian Stretch server, with Sympa 6.2.16 with SysVinit service
By default, all sympa logs are sent to rsyslog
, which put them in /var/log/syslog
.
If you want to ease seeking things in logs, you may want to put each processus log to a dedicated log file.
-
create
/var/log/sympa
:mkdir /var/log/sympa chown root:adm /var/log/sympa chmod 750 /var/log/sympa
- put the provided
rsyslog.d/sympa.conf
in/etc/rsyslog.d/
and restartrsyslog
- put the provided
logrotate.d/sympa
in/etc/logrotate.d/
That’s all 🙂