Re: [mod-security-users] Logrotate file for Ubuntu
Brought to you by:
victorhora,
zimmerletw
|
From: Christian V. <cv...@it...> - 2021-03-11 16:32:08
|
+1
I use this method (copytruncate) and works without issues
Cheers.
Chris.
> On jueves, mar. 11, 2021 at 7:45 a. m., Andrew Howe <and...@lo... (mailto:and...@lo...)> wrote:
> Hi Blason,
>
> You could try using the copytruncate option, which negates the need to
> reload Apache by leaving the original log file in place.
>
> As an example, we use the following configuration to rotate audit logs:
>
> /var/log/httpd/modsec_audit*.log {
> copytruncate
> weekly
> rotate 12
> size 20M
> create 0640 root root
> }
>
> Just another idea you could test :)
>
> Thanks,
> Andrew
>
> --
>
> Andrew Howe
> Loadbalancer.org Ltd.
> www.loadbalancer.org
> +1 888 867 9504 / +44 (0)330 380 1064
>
>
> _______________________________________________
> 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/
|