File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes log rotation in Tomcat and Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "log rotation in Tomcat and Apache" Watch "log rotation in Tomcat and Apache" New topic

log rotation in Tomcat and Apache

Jason Kretzer
Ranch Hand

Joined: May 31, 2001
Posts: 280
Hello all:
I am using Tomcat 4.x and Apache 1.3.26 on RH7.3. I have noticed that the catalina.out gets REALLY huge after a while. I believe that sometimes this file is appended with a date and then a new catalina.out is created. I would like to do this daily with both the catalina.out and access_log for Apache. Will I have to use a crontab or does the software support doing this with some setting?

Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href="" target="_blank" rel="nofollow"></a>
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
On the linux environment you should be able to use the logrotate tool. I haven't used it myself. You could probably get more info on logrotate on the Linux/Unix forums.
I agree. Here's the link:
subject: log rotation in Tomcat and Apache
jQuery in Action, 3rd edition