Re: [mod-security-users] Logrotate file for Ubuntu
Brought to you by:
victorhora,
zimmerletw
|
From: Ervin H. <ai...@gm...> - 2021-03-11 07:26:41
|
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.
|