Skip to content

logrotate role to compress rotated files

Andreas Hamacher requested to merge usecompressedlogfiles into master

CR: https://jira.apps.monash.edu/browse/HCM-82

tested on massive004(entos) and massive002(Ubuntu) via

sudo logrotate --force /etc/logrotate.d/syslog
sudo logrotate --force /etc/logrotate.conf

before:

-rw-------   1 root     root           0 Jul 25 03:25 messages
-rw-------.  1 root     root     3247768 Jul 19 15:22 messages-20210719
-rw-------   1 root     root           0 Jul 19 16:42 messages-20210725

after:

-rw-------   1 root     root           0 Jul 26 12:24 messages
-rw-------.  1 root     root     3247768 Jul 19 15:22 messages-20210719
-rw-------   1 root     root           0 Jul 19 16:42 messages-20210725
-rw-------   1 root     root          20 Jul 25 03:25 messages-20210726.gz
Edited by Andreas Hamacher

Merge request reports