users@glassfish.java.net

Re: Configure access log to include username

From: Dick Davies <rasputnik_at_gmail.com>
Date: Tue, 5 Aug 2008 12:16:56 +0100

On Mon, Aug 4, 2008 at 4:52 PM, <glassfish_at_javadesktop.org> wrote:
> Hello
> We are still using SJSAS version 8.1, I am having difficulty getting the access log to include username. To configure the format of the access log I am using:
> Admin Console "Configurations" -> "server-config(Admin Config)"-> "HTTP Service" -> "Access Log" tab
>
> I am able to make other changes like adding the user agent %header.user-agent% and the log changes as one would expect.
>
> I imagine that to log the user name of a logged in user I need the term
> %auth-user-name%
> however it does not give anything of interest, the log records just a "-" no username.
>
> The web applications being served require users to login so there is no doubt about whether the user is logged in or not.


Some webapps would just set a cookie, in which case the user may not
be accessible as an
HTTP header.

-- 
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/