Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Enable Logging_IIS_SP1_Dep

Updated: August 22, 2005

Applies To: Windows Server 2003, Windows Server 2003 with SP1

You can enable logging for individual Web and File Transfer Protocol (FTP) sites. After you enable logging for a Web or FTP site, all traffic to the site (including virtual directories) is written to the corresponding file for each site. You can also enable logging for specific virtual directories.


  • Credentials: Membership in the Administrators group on the local computer.

  • Tools: Iis.msc.


As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run IIS Manager as an administrator. At the command prompt, type runas /user:administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc.


To enable logging on a Web or FTP site
  1. In IIS Manager, expand the local computer, expand the Web or FTP Sites directory, right-click the Web or FTP Site for which you want to enable logging, and then click Properties.

  2. On the Web Site or FTP Site tab, click the Enable logging check box.

  3. In the Active log format list box, click a format. By default, the format is W3C Extended Log File Format.

    If you select Open Database Connectivity (ODBC) logging, click Properties and type the ODBC Data Source Name (DSN) and the name of the table within the database into the text boxes. If a user name and password are required to access the database, type the necessary credentials, and click OK.

  4. Click Apply, and then click OK.

To enable logging for a specific virtual directory on a site
  1. In IIS Manager, expand the local computer, expand the Web Sites directory, right-click the virtual directory, and click Properties.

  2. On the Virtual Directory or Directory tab, select the Log visits check box if it is not selected. By default, the check box is selected.

  3. Click Apply, and then click OK.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft