an example logrotate configuration to rotate auditd logs. `vim /etc/logrotate.d/auditd` ```logrotate /var/log/audit/audit.log { daily rotate 91 # compress the logs compress # use the date as the rotation extension instead of incrementing numbers dateext # set the date extension format you want to use dateformat .%Y-%m-%d # make the .gz come after the rotation extension extension .gz # if the file we want to rotate isn't there, don't worry about it and move on (the default is to throw an error) missingok # leaves the 1st file uncompressed delaycompress prerotate service auditd rotate 2> /dev/null || true endscript } ```