rsyslog: use file date for compression cycle

This commit is contained in:
Ryan Cavicchioni 2022-08-30 06:49:11 -05:00
parent be9fd29f90
commit 58e403a0a0
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -68,7 +68,7 @@
minute: "0" minute: "0"
hour: "1" hour: "1"
user: root user: root
job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" -mtime +5 -exec xz {} \; job: find /var/log/syslog/ -mindepth 4 -type f -name "*.log" ! -newerct 00:00:00 -exec nice xz -f {} \;
state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}" state: "{{ rsyslog_archival_format_enabled | ternary('present', 'absent') }}"
- name: purge log cron job - name: purge log cron job