I am using IIS 5 Logs W3C Extended format I need to collect vital information
on authenticated users on the website?

All the entries for the authenticated username for the fields cs-username
are empty in the above IIS logs the other information appears to be captured
in the above logs The user name and password are entered into an ASPX login
form, but the actual authentication is performed by forms authentication.

I need the username in the log files in order that webtrends log analyzer
could use it to provide meaningful information about the web usage. How can I
code the ASPX login form to push the authenticated username into the IIS
logs?

What object collection in IIS contains the authenticated users or current
user logged on for the session?




See Attached log file and screenshot of the extended properties of IIS.

Re: IIS Logs by Tom

Tom
Tue Apr 19 14:22:12 CDT 2005

"evan1" <evan1@discussions.microsoft.com> wrote in message
news:9F9ACA38-6320-4A10-8FA7-973AB8EC8F99@microsoft.com...
> I am using IIS 5 Logs W3C Extended format I need to collect vital
information
> on authenticated users on the website?
>
> All the entries for the authenticated username for the fields cs-username
> are empty in the above IIS logs the other information appears to be
captured
> in the above logs The user name and password are entered into an ASPX
login
> form, but the actual authentication is performed by forms authentication.
>
> I need the username in the log files in order that webtrends log analyzer
> could use it to provide meaningful information about the web usage. How
can I
> code the ASPX login form to push the authenticated username into the IIS
> logs?

AFAIK, that's not possible. You would either need to switch to using Basic
or Windows Integrated authentication in IIS or code your own tracking in
ASP.NET.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS



Re: IIS Logs by jeff

jeff
Tue Apr 19 17:21:01 CDT 2005

On Tue, 19 Apr 2005 09:03:04 -0700, "evan1"
<evan1@discussions.microsoft.com> wrote:

>I am using IIS 5 Logs W3C Extended format I need to collect vital information
>on authenticated users on the website?
>
>All the entries for the authenticated username for the fields cs-username
>are empty in the above IIS logs the other information appears to be captured
>in the above logs The user name and password are entered into an ASPX login
>form, but the actual authentication is performed by forms authentication.
>
>I need the username in the log files in order that webtrends log analyzer
>could use it to provide meaningful information about the web usage. How can I
>code the ASPX login form to push the authenticated username into the IIS
>logs?

It doesn't work that way. If you use Windows Integrated
authentication the info you seek is recorded in the log. Otherwise
you'll need to write your own log or write info to a database to track
this. Basic authentication should get you what you want as well.

Might ask in a dotnet group, there may be a better solution available
for what you're looking for.

Jeff

Re: IIS Logs by Sparky

Sparky
Wed Apr 20 08:36:51 CDT 2005


> It doesn't work that way. If you use Windows Integrated
> authentication the info you seek is recorded in the log. Otherwise
> you'll need to write your own log or write info to a database to track
> this. Basic authentication should get you what you want as well.
>

Just wanted to confirm that basic authentication does indeed record the
username in the log in the "username" spot.