Re: Rotating Concurrent Log Files

homesh joshi <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <CAAjxK7sYOv8Y7rVbaEsEPBvLcb+xcP1tCzS+k8R9aHD2HTDVSw@mail.gmail.com>
Hi,

Since it is concurrent logs, new logs will go in a separate directory e.g
20201005. Post gzip of logs to a separate directory. You may delete the old
directories completely. I run script everyday that keep last 2 days
directories and remove older ones.

Thanks,
Homesh

Thanks,
Homesh

On Mon 5 Oct, 2020, 7:10 PM Chuck Nemeth, <[email protected]> wrote:

> 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/
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.