Logging: Tomcat (Apache Jakarta Project)
Overview
This article describes how to configure the Tomcat webserver for use with Urchin.
Standard logging format without cookies.
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="access_log" suffix=".log" pattern="%h %v %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"" resolveHosts="false"/>
You must have Tomcat 5 to log cookies.
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="access." suffix=".log" pattern="%h %v %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" "%{Cookie}i"" resolveHosts="false" />