keep 5 days of syslog files uncompressed

This commit is contained in:
Ryan Cavicchioni 2020-01-23 08:03:08 -06:00
parent 11898e4ee7
commit 05a67e2db4
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -68,5 +68,5 @@
minute: "0"
hour: "1"
user: root
job: find /var/log/syslog/ -type f ! -name "*$(date +\%Y\%m\%d)*.log" -name "*.log" -exec xz {} \;
job: find /var/log/syslog/ -type f -name "*.log" -mtime +5 -exec xz {} \;
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"