• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Logrotate for modsecurity

AndreasI

New Pleskian
I want to create logrotate in logrotate.d for modsecurity log.

i find following code, but it dont works.

Code:
/var/log/modsec_audit.log {
    rotate 7
    compress
    missingok
    notifempty
    sharedscripts
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}

who can help me.
 
Back
Top