Skip to main content

modsec_audit.log is 1.4GB

Comments

2 comments

  • dalem
    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
  • cPanelMichael
    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.