Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Maurice Yarrow
Rainer (and also, Martin) Thanks, gentlemen. Maurice Rainer Jung wrote: ... for the quotes simply use the predefined xml entity: " Maurice Yarrow schrieb: Hello, again, Tomcat community: I found the answer to my own question below: Use: pattern="%{X-Forwarded-for}i %l %u %t %r %

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Rainer Jung
... for the quotes simply use the predefined xml entity: " Maurice Yarrow schrieb: > Hello, again, Tomcat community: > > I found the answer to my own question below: > Use: > > pattern="%{X-Forwarded-for}i %l %u %t %r %s %b" > > in the access log valve config. > > Only thing: I would l

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Martin Gainty
you can acquire the local IP (%A) and remote IP (%a) if you implement AccessLogValve http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html M- This e-mail communication and any attachments may contain confidential and privileged information for t

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Maurice Yarrow
Hello, again, Tomcat community: I found the answer to my own question below: Use: pattern="%{X-Forwarded-for}i %l %u %t %r %s %b" in the access log valve config. Only thing: I would like to surround the %r with "%r", as is done in the "common" setup. What byzantine combination of single q