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