Hi List,

We are running Geoserver 2.11.1 with Java 1.8.0_131 on Tomcat 8.0.44.

I have tried before Geoserver's own mailing list without any help, so now I try 
this one. Geoserver is a map engine to publish raster and vector data in the 
Internet. More information can be found here http://geoserver.org/

We are not able to record the username in the Tomcat Accesslog. Geoserver has 
it's monitor plugin and Auditlogs, which we have installed and logs are running 
nicely with recorded username. In the Tomcat's accesslog they don't show up no 
matter what I try. We prefer more using Tomcat's access logs, as we are not 
satisfied Geoservers format.

Here are parameters for the AccessLogValve in Tomcat 8.0\conf\server.xml file

<Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="D:\Data\GeoServer\Tomcat_logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%a %{X-Forwarded-FOR}i %u %t &quot;%r&quot; %s %b" />

I have tried to replace "%u" parameter with different kinds of syntaxes example 
"%{username}s", "%{userName}s", "%{remoteUser}s", "%{remoteuser}s", but none of 
them had solved the problem. Not even replacing "s" with "i". With 
{Authorization}i, I was able to record that Geoserver is using Basic 
authentication as it is set in UI.

Can you help me?

With best regards

Mr. Ville Jussila
Cadastral Surveyor
City of Helsinki
Finland

Reply via email to