modsec_audit.log is 1.4GB
Hello, on WHM server v66.0.24, /usr/local/apache/logs/modsec_audit.log is 1.4GB which seems quite big to me.
first entry in the file is: [28/Feb/2017
cat /etc/logrotate.d/modsecurity_logs
/usr/local/apache/logs/modsec_audit.log {
rotate 15
size=300M
missingok
compress
postrotate
/usr/local/cpanel/scripts/restartsrv_httpd 2> /dev/null > /dev/null || true
endscript
}
Please kindly what to check to fix it?
Please kindly what to check to fix it?
-
Make sure you have a include /etc/logrotate.d statement in your /etc/logrotate.conf run logrotate -f /etc/logrotate.conf see if it rotates or there is an error 0 -
Hello, In addition to the previous post, check to ensure the following entries exist in the /etc/logrotate.d/modsecurity_logs file: /usr/local/apache/logs/modsec_audit.log { rotate 15 size=300M missingok compress postrotate /usr/local/cpanel/scripts/restartsrv_httpd 2> /dev/null > /dev/null || true endscript }
Thank you.0
Please sign in to leave a comment.
Comments
2 comments