tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@micek.csz.com
Subject Re: Valve Access Log Pattern - combined
Date Fri, 07 Feb 2003 21:15:37 GMT
On Fri, Feb 07, 2003 at 12:26:16PM -0800, Matt Fury wrote:
> Has anyone gotten "combined" to work as a pattern.

Yes.  Using tomcat 4.0 on Debian Woody, added lines like:

            <Valve className="org.apache.catalina.valves.AccessLogValve"
                directory="logs"
                prefix="com_example_access_log."
                suffix=".txt"
                pattern="combined" />

to my <Host> section(s) and now I get log entries like:

nn.nnn.250.224 - - [07/Feb/2003:00:23:07 -0600] "GET /list.jsp?catid=36 HTTP/1.1" 200 38768
"http://search.yahoo.com/bin/search?p=stuffour+clientsells" "Mozilla/4.0 (compatible; MSIE
5.0; Windows 98; DigExt)"

in, e.g., /var/log/tomcat4/com_example_access_log.2003-02-07.txt

> According to the docs, combined is supposed to add
> Referrer and User Agent? Am I reading this wrong? The
> logs didn't show anything different. And I believe the
> User Agent was in there to begin with but I really
> want the Referrer.
> 
> Any thoughts? Thanks.

Give more info.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message