Customize W3C Extended Logging

The W3C Extended log file format is the default log file format for IIS. It is a customizable ASCII text-based format. You can use IIS Manager to select which fields to include in the log file. [W3C Extended Log File Format]

Change logging properties

  1. On the Windows Start menu, click Control Panel Administrative Tools Internet Information Services
  2. In IIS Manager, expand the local computer, expand the Web Sites folder, right-click the Default Web site, and click Properties.
  3. On the Web Site tab, select the Enable Logging (if it is not already selected).
  4. In the Active log format drop-down list,select W3C Extended Log File Format, and click the Properties button.

    BEFORE

    Note: Before changing the extended properties, write down or take snapshots of currently selected W3C properties in case of wanting to go back to the original state in the future
  5. On the Advanced tab (for Windows 2003 server) or Extended Properties tab (for Windows XP), select logging ALL.

    AFTER

  6. Click OK, and close IIS Manager.
  7. From the Windows Start menu, select Run. Type: iisreset and then click OK to restart IIS.
  8. IIS logs are located in the following directories:
    • C:\WINDOWS\system32\LogFiles\W3SVC1 - for the Default Web site communication.
    • C:\WINDOWS\system32\LogFiles\HTTPERR - for IIS errors logs.