Stone Steps Inc.

Article ID: Q20041031-01

Q:Are the fields in IIS log files supposed to be arranged in a certain way?

A:No. All latest versions of IIS output log files in the W3C Extended Log File Format, which defines special directives describing the physical structure of the log file. The example below shows directives in a typical IIS log file (the line break at <cont'd> is shown for display purposes only).

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2004-10-29 01:10:02
#Fields: date time c-ip cs-username s-sitename s-port cs-method cs-uri-stem <cont'd>
         cs(User-Agent) cs(Referer) cs-uri-query sc-status sc-bytes cs-bytes time-taken

As Stone Steps Webalizer is processing a log file, it recognizes #Fields directives and dynamically reconfigures its parser to process log file entries following this directive in the matching order.