Customizing W3C Extended Logging

If you are using W3C Extended Log File Format for a Web or FTP site, you can customize it by selecting the fields (items) you want to log. You can gather detail using fields important to you, while limiting log size by omitting unneeded fields.

For an overview of logging, see About Logging Web Site Activity. To find out how to enable logging and specify a format, see Enabling Logging.

To customize W3C Extended logging
  1. Make sure that logging is enabled and that the format is W3C Extended Log File Format, by following the procedure in Enabling Logging.
  2. Select a Web or FTP site, open the property sheets.
  3. On the Web Site or FTP Site property sheet, click Properties.
  4. The Extended Logging Properties dialog box appears.

  5. On the Extended Properties property sheet, select the fields you want to log.
  6. By default, Time, Client IP Address, Method, and URI Stem are enabled.

    In the following table, "Field" reflects the name given to the logging field in Internet Service Manager. "Appears As" refers to how the field name appears in the log file.

    Field Appears As Description
    Date date The date on which the activity occurred.
    Time time The time the activity occurred.
    Client IP Address c-ip The IP address of the client that accessed your server.
    User Name c-username The name of the user who accessed your server.
    Service Name s-sitename The Internet service that was running on the client computer.
    Server Name s-computername The name of the server on which the log entry was generated.
    Server IP s-ip The IP address of the server on which the log entry was generated.
    Method cs-method The action the client was trying to perform (for example, a GET command).
    URI Stem cs-uri-stem The resource accessed; for example, an HTML page, a CGI program, or a script.
    URI Query cs-uri-query The query, if any, the client was trying to perform; that is, one or more search strings for which the client was seeking a match.
    Http Status sc-status The status of the action, in HTTP terms.
    Win32 Status sc-win32-status The status of the action, in terms used by Windows NT.
    Bytes Sent cs-bytes The number of bytes sent by the server.
    Bytes Received sc-bytes The number of bytes received by the server.
    Server Port s-port The port number the client is connected to.
    Time Taken time-taken The length of time the action took.
    Protocol Version cs-protocol The protocol (HTTP, FTP) version used by the client. For HTTP this will be either HTTP 1.0 or HTTP 1.1.
    User Agent cs(User-Agent) The browser used on the client.
    Cookie cs(Cookie) The content of the cookie sent or received, if any.
    Referrer cs(Referer) The site on which the user clicked on a link that brought the user to this site.

  7. Click Apply.
  8. Click OK until you have closed all dialog boxes.

© 1997 by Microsoft Corporation. All rights reserved.