You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frank Signorelli <f....@telesciences.com> on 2001/02/01 16:33:25 UTC

How do I rotate logs for Tomcat?

Hi all,

To prevent logfiles from growing without bound, Apache uses
the rotatelogs command with the TransferLog directive in
httpd.conf.

What is the preferred method for rotating log files from
Tomcat?

Thanks in advance for any advice.


Frank
---
Frank L. Signorelli           <ma...@telesciences.com>
Senior Member of Tech. Staff  Telesciences, Inc.
Telephone: +1.866.1000 x3207  2000 Midlantic Drive
                              Suite 410
                              Mt Laurel, NJ 08054 

Re: How do I rotate logs for Tomcat?

Posted by Ben Ricker <br...@us-rx.com>.
I would use logrotate.d which comes with most, if not all, Unix 
variants. Type 'man logrotate' for more info. I am not sure if there are 
any problems with processing a log file while Tomcat is still running, 
though. Can someone else speak to that issue with Tomcat?

Frank Signorelli wrote:

> Hi all,
> 
> To prevent logfiles from growing without bound, Apache uses
> the rotatelogs command with the TransferLog directive in
> httpd.conf.
> 
> What is the preferred method for rotating log files from
> Tomcat?
> 
> Thanks in advance for any advice.
> 
> 
> Frank
> ---
> Frank L. Signorelli           <ma...@telesciences.com>
> Senior Member of Tech. Staff  Telesciences, Inc.
> Telephone: +1.866.1000 x3207  2000 Midlantic Drive
>                               Suite 410
>                               Mt Laurel, NJ 08054 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 
>