Re: Rotating Concurrent Log Files

Chuck Nemeth <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <CABuPkuu5wTRgbgz5OccFC-f4J15YSpsz-46HOJa0WEmn8Z=9bA@mail.gmail.com>
It's starting to make sense to me now that I've read the replies. I did see
that you could use * in logrotate but wasn't sure what to do with the
leftover directories. I can just have a cron job delete them like Homesh
recommended.

I originally had set up a cron job to gzip the entire day's directory and
have logrotate operate on that every so often.

Thanks for the help!

Chuck

On Mon, Oct 5, 2020 at 1:48 PM Robert Paprocki <
[email protected]> wrote:

> Hi Chuck,
>
> On Mon, Oct 5, 2020 at 7:34 AM Chuck Nemeth <[email protected]> wrote:
>
>>
>> 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
>>
>
> You can configure logrotate to use glob matching to match all files in a
> directory. See https://unix.stackexchange.com/a/83859
> _______________________________________________
> 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.