Re: Rotating Concurrent Log Files

Chuck Nemeth <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <[email protected]>
Thanks for the reply!

 From the information I've gathered while researching possible solutions 
logrotate does not operate on directories, it only works on files (but I 
haven't tested to verify). Since the directories are nested when using 
Concurrent logging, I wasn't sure if logrotate would be able to rotate 
the whole directory or if there was a recommended approach. I've read 
through the netnea tutorial and purchased the modsecurity handbook from 
feistyduck but didn't see any mention in either resource as to rotating 
the logs.

On 10/5/20 9:48 AM, Christian Varas via mod-security-users wrote:
> Hi, using logrotate is the way to go.
>
> Cheers.
>
>> El 05-10-2020, a la(s) 10:39, Chuck Nemeth <[email protected]> escribió:
>> Hello!
>>
>> I'm in the process of implementing modsecurity on my website and am wondering if there's a best practice in regards to rotating the concurrent logs.
>>
>> My current idea is to have a cron job that will run a script to gzip the daily directories and then use logrotate on them.
>>
>> If anyone has any other suggestions I would really appreciate it.
>>
>> Thanks in advance!
>>
>> Chuck
>>
>>
>> _______________________________________________
>> 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/



_______________________________________________
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.