Re: Logrotate file for Ubuntu

Ervin Hegedüs <[email protected]> Thu, 11 Mar 2021 08:26:22 +0100
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <[email protected]>
Hi Blason,

On Thu, Mar 11, 2021 at 09:39:15AM +0530, Blason R wrote:
> 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?

from the manual of logrotate:

     size size
              Log files are rotated *only* if they grow bigger than size bytes.

> 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

so it looks like the option "size" overwrites the "daily".

hth,


a.
 


_______________________________________________
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/