keep 5 days of syslog files uncompressed
This commit is contained in:
parent
11898e4ee7
commit
05a67e2db4
@ -68,5 +68,5 @@
|
|||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "1"
|
hour: "1"
|
||||||
user: root
|
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') }}"
|
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user