File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Can tomcat access logs(AccessLogValve) be rotated hourly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can tomcat access logs(AccessLogValve) be rotated hourly?" Watch "Can tomcat access logs(AccessLogValve) be rotated hourly?" New topic
Author

Can tomcat access logs(AccessLogValve) be rotated hourly?

Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Is there any option that can enable tomcat access log rotation to hourly format instead of daily. Below is what I am using



Thanks in advance!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16908
    
  26

Take a closer lok at the "fileDateFormat" attribute in the documentation. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve


Customer surveys are for companies who didn't pay proper attention to begin with.
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Thanks a lot Tim. Really bad I missed this simple thing .

Cheers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can tomcat access logs(AccessLogValve) be rotated hourly?
 
It's not a secret anymore!