• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access Log Valve Parameter ' Requested URL path'

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic