Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Log Valve Parameter ' Requested URL path'

 
Robert Liberman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, I'm a developer not an administrator, so please be patient with me!

We have several hosts defined in our server.xml file. Here is an example of one. I have changed the host name for purposes of this example:

<Host name="www.test.abc" appBase="webapps/test">
<Context path="" docBase="."/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="test_access_log." suffix=".log"
pattern="combined" resolveHosts="true"/>
</Host>

The problem is that I use WebTrends software to run metrics reports from our Apache Tomcat server. I want to be able to isolate data for www.test.abc but cannot because, for each user entry in the log file, the Requested URL path does not contain the absolute path - just the relative path from the application directory - i.e. "/".

Therefore, all log entries for all hosts contain the same path information.

Is there some logging parameter which will force each log entry to record the full, absolute path?

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page:
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html
shows all the identifiers that can be used in the pattern attribute to customize the layout of the log files created by the valve.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic