Re: Logrotate file for Ubuntu
Christian Varas via mod-security-users <[email protected]> Thu, 11 Mar 2021 13:04:02 -0300
| Newsgroups | gmane.comp.apache.mod-security.user |
|---|---|
| Message-ID | <4c2bb0a4-5abf-4d11-a2e3-331fd2073035@Canary> |
+1 I use this method (copytruncate) and works without issues Cheers. Chris. > On jueves, mar. 11, 2021 at 7:45 a. m., Andrew Howe <[email protected] (mailto:[email protected])> 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 > [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/
signature.asc
(application/pgp-signature, 673 B)
-----BEGIN PGP SIGNATURE----- Version: Canary PGP V3 iQGtBAABCgAXEBxjdmFyYXNAaXRzZWMuY2wFAmBKP3IACgkQr42NOiXCiCtk4Av+ KE09cGaoyd4o0QIaZZJByMIhfyN0UPPsABHYgh65EL20maMrPnA7j6E9NvrByhec 1m3CQdLNYLOfmFZYLVqgm9bbsHQ/vcmXbu3u6zdxMkwRQLzHFvq2eiZKySKVyVM2 E2kb6ps2gFFOMqnO6v3CTvNFF/EsFPhujuesOzNjYWrWmfz8SCAIO540rftCgXN4 Z2FNWDWwwjk0sXUSPLYuU0dpuPwtarREx/oVwQwNxtN10ki6tKQhvViM0AlV7/rv x3NFtN/4J5vYhDrysOVWfr8+prAsrQFyXy9HTuUchlU7C46+GWfDdxWq+CcOyVGv +69VsIhr+XN9lapfgrYKY6NYPEcSMDOSisFk9k0aPqLEQAh2r34xZJ6cbNxdsO2g whSGkw1onfnZLkw6RlbhC9mdQ8kH7Wi8E67gSO8eudlpCpeJORw8BVvWJdpq2lWf 2gp0lN86sUdFFB8HSRNlYy7m7XTX8KhURojSa9WrgnSNQFt/Ncawkjv+jxNG5Ttz =W+mJ -----END PGP SIGNATURE-----