Enabling Web Client Logging

The following procedure allows you to verify (by enabling URI queries in IIS) when a user is logged in, if that login was successful, and when the user logged out.

Note: IIS log files are stored in the following directory: %WINDOWS%\System32\LogFiles\

How to place user login messages in the IIS logs:

  1. Go to Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager. The IIS Manager window appears.
  2. On the left pane, select the Web site upon which the client resides, right-click, and select Properties. The Web Site Properties window appears.
  3. The Enable Logging option should already be selected. Click the Properties button next to the Active log format list box. The Logging Properties dialog displays. Click the Advanced (or Extended) Properties tab. Select the URI Query Option.
  4. Click OK for each dialog until all dialogs are closed.

    Note: If you need more information on enabling logging for IIS, read the following KB: http://support.ipswitch.com/kb/IM-20051206-DM01.htm

Examples of what the user data will look like in the IIS logs:

14:55:27 127.0.0.1 POST /cypress/login.aspx Login+Attempt:+[Marc]Login+Successful:+[Marc]+Language+Used:+en-US 302

14:57:01 127.0.0.1 POST /cypress/Login.aspx Login+Error:+[Marc]+Failed+to+authorize+user. 200

15:23:31 127.0.0.1 GET /cypress/Logout.aspx Logout:+[Marc] 200