[mod-security-users] Logrotate file for Ubuntu
Brought to you by:
victorhora,
zimmerletw
|
From: Blason R <bla...@gm...> - 2021-03-11 04:09:43
|
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
|