Logrotate file for Ubuntu

Blason R <[email protected]> Thu, 11 Mar 2021 09:39:15 +0530
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <CAPPXLT8k2PpNcWO3pyiH_TT0oickAX0K5QMehQ3AV4tOTrksWw@mail.gmail.com>
Hi Team,

Somehow my logroate with Ubuntu 20.04 is not working for modsec audit log
and still a single file is being filled with the logs.

Am I doing anything wrong?

more /etc/logrotate.d/modsec_audit
/var/log/modsec_audit.log {
su root root
daily
rotate 7
*size 10M*
missingok
compress
delaycompress
}

I want the files to be rotated every day

ls -larth /var/log/modsec*
-rw-r--r-- 1 root root 887K Mar 10 13:54 /var/log/modsec_audit.log.2.gz
-rw-r--r-- 1 root root    0 Mar 11 00:00 /var/log/modsec_audit.log
-rw-r--r-- 1 root root  *36M* Mar 11 08:12 /var/log/modsec_audit.log.1

_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/