Add log rotation for mod_security logs
Since 2014-11-06 extensive logging has been done by mod_security under:
this presents 2 problems:
1) the logs are kept under cpanel user ownership and are counted towards disk usage (under Other Disk Usage)
2) the logs eat up a lot of space, in some cases 5Mib per day = 150Mib/month and having 100 users would be 15Gib space per month
extensive loggin occurs when using OWASP or other large rulesets.
from my conclusion only mod_security + mod_ruid creates log files under:
Currently there is in-built no log rotation or option to clean up these logs.
I handled it temporarily with a cronned script:
We need an urgent solution to keep these logs in check and not fill up the disk with logs.
I suggest an option to set mod_security logs for X days + include them in log rotation.