File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Where to find tomcat access logs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Where to find tomcat access logs? " Watch "Where to find tomcat access logs? " New topic

Where to find tomcat access logs?

Deepak Mittal

Joined: Dec 18, 2007
Posts: 8
I need to look at the tomcat access logs (web-server access logs). I could not locate them easily.

Are access logs turned-off by default? Any pointers?


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
They're usually in the TOMCAT_HOME/logs directory, named localhost_access_log.2008-01-29.txt or something like that. If there aren't any, search the TOMCAT_HOME/config/server.xml file for "AccessLogValve". If it's commented out, comment it in and restart Tomcat.
I agree. Here's the link:
subject: Where to find tomcat access logs?
jQuery in Action, 3rd edition