Saturday, 5 May 2012

Turn on logging on a Web site in iis

Turn on logging on a Web site

Internet Information Services (IIS) logging is designed to be more detailed than the event-logging or performance-monitoring features of Windows Server 2003. The IIS logs can include information such as who has visited your site, what they viewed, and when the information was viewed last. You can monitor attempts, either successful or unsuccessful, to access your Web sites, virtual folders, or files. This includes events such as reading the file or writing to the file. Events can be logged independently for any site, virtual folder, or file. By regularly reviewing these log files, you can detect areas of your server or your sites that may be subject to attacks or suffer from other security problems.

To turn on logging on a Web site, follow these steps:
  1. Start the Internet Information Services Manager. To do this, click Start, point to Administrative Tools, and then click Internet Information Services.
  2. Double-click your server_name, where server_name is the name of the server.
  3. Expand the Web Site folder.
  4. Right-click the Web site for which you want to turn on logging, and then click Properties.
  5. On the Website tab, select Enable Logging.

    Note Both Enable Logging on the Website tab and Log visits on the Home Directory Tab must be checked for logging to be enabled.
  6. Select a format in the Active log format list.
  7. Click Properties, click the Advanced tab, and then select the items that you want to monitor in the log.

    NOTE: If you select ODBC logging, click Properties, provide the ODBC Data Source Name (DSN), table, user name, and password, and then click OK
  8. On the General tab, select the way that you want to schedule the logging or change the Log file folder. For more information, see the "Configuration options for saving IIS log files" section of this article.
  9. Click OK
courtesy : http://support.microsoft.com/kb/324279
C:\WINDOWS\system32\LogFiles\

No comments:

Post a Comment