Re: [mod-security-users] Logrotate file for Ubuntu
Brought to you by:
victorhora,
zimmerletw
|
From: Christian F. <chr...@ne...> - 2021-03-11 07:29:06
|
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
> mod...@li...
> 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/
|