Edit file File name : modsec Content :# Ansible managed /var/log/mod_sec/modsec_audit.log { daily missingok rotate 14 compress delaycompress copytruncate notifempty create 640 root root sharedscripts prerotate /bin/sleep $((RANDOM%1000)) endscript } Save