[This is preliminary documentation and subject to change]

About Windows Events

Logging begins automatically whenever Windows is started. There are three types of logs: System, Security, and Application. For each type of log, you can filter the events to be viewed, designate the number of entries to view, decide how long to save entries, and decide whether to automatically overwrite existing events when the log becomes full.

There are several ways to open the Event Viewer:

ASP Errors and the Windows Event Log

In the Event Viewer, you can open the property pages for each type of log and configure the filter options that generally apply to all events.

IIS increases the degree of control by providing two metabase keys that allow you to specify what is sent to the Windows Event log when ASP errors occur. 

For descriptions of ASP Event errors, see Active Server Pages Events.

For more information on the metabase and programmatic administration of IIS, see Programmatic Administration. A quick way to set these keys is to use the adsutil.vbs script sample in X:\inetpub\adminscripts, where X: is the drive on which you installed IIS. For example, to send the subset of ASP Event errors to the Windows Event log, type the following lines in a command window:

   /cscript adsutil.vbs SET
w3svc/1/root/<vdir_name>/AspLogErrorRequests
TRUE/
   /cscript adsutil.vbs SET
w3svc/1/root/<vdir_name>/AspErrorsToNTLog FALSE/

note Note    ASP errors can also be logged to the IIS log files. This is configured in the IIS snap-in. If logging an ASP error to the IIS log file fails, the error will be sent to the Windows Event Log.


© 1997-2001 Microsoft Corporation. All rights reserved.