Re: Logrotate file for Ubuntu

Christian Folini <[email protected]> Thu, 11 Mar 2021 08:28:40 +0100
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <20210311072840.GA865403@leander>
Hey Blason,

If on Apache, then you need to reload the server config to instruct
the server to open the logfiles anew. I used to do this inside the
curly brackets, IIRC.

Regs,

Christian

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



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