ansible/roles/rsyslog_collector/templates/rotate-remote-logs.timer.j2
jeltz c65b3f090b
Some checks failed
continuous-integration/drone/push Build is failing
Compress and delete old remote logs
Logrotate is not used because I didn't found an easy way to configure it
to handle the compression/deletion of log files already rotated by
rsyslog (it is probably possible, but I found the script to be easier).
2021-03-01 03:58:58 +01:00

11 lines
137 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=Rotate remote logs daily
[Timer]
OnCalendar=daily
[Install]
WantedBy=timers.target