Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: How to get User Access logs in tomcat

Leon Rosenberg

2006-12-13

Replies:

I think your valve definition misses some attributes:

     <Valve className="org.apache.catalina.valves.AccessLogValve"
               directory="logs" prefix="access_webapp." suffix=".log"
               pattern="common"/>

regards
Leon

On 12/13/06, Jason Friedman <ysonglist@(protected):
> I've tried to get user access logs like:
>
> ---
>
> 127.0.0.1 - - [19/Oct/2006:12:38:09 +0800] "GET / HTTP/1.1" 302 - 0.240 -
> 127.0.0.1 - - [19/Oct/2006:12:38:09 +0800] "GET / HTTP/1.1" 302 - 0.243 -
> 127.0.0.1 - - [19/Oct/2006:12:38:11 +0800] "GET
> /secure/Setup!default.jspa HTTP/1.1" 302 - 1.732
> 39F9C7F048F7F060A4B9883A7348082D
> ---
>
>
>
> I cannot find such logs in the logs/ directory, what configuation should I
> do to have it appears? What plugin should I have? Thanks.
> I've tried to add the following to the server.xml files, but it doesn't work
>
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> pattern="%h %l %u %t &quot;%r&quot; %s %b %T %S" resolveHosts="false"
> />
>
>
> Jason.
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.