w3c_extended2dlf(1)

w3c_extended2dlf1

Convert w3c extended log file as used by ms iis to dlf

Usage

w3c_extended2dlf file

Overview

w3c_extended2dlf converts web server log files in the W3C Extended Log Format to the www DLF. This log format is defined at http://www.w3.org/TR/WD-logfile.html

It is used by IIS 4.0 and IIS 5.0. This is a customizable format which contains an header specifying which information is present in the log.

Some documenation on these log file formats is available in the section on "Analyzing Log Files (IIS 6.0)" in the "IIS 6.0 Documentation" at the "Microsoft Windows Server 2003 TechCenter" at http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/ Library/IIS/610b7d2c-90d6-4e40-be79-aaf88a283f03.mspx?mfr=true . The newer IIS 7.0 product is documented at http://www.iis.net/.

To have the maximum information in you reports, we suggests that you log the following fields :

 date, time, c-ip, c-dns, cs-uri, cs-method, sc-bytes, sc-status,
 cs(User-Agent), cs(Referer) and cs-username

We also support the cs-uri-stem field.

Other fields will be ignored.

Limitations

The converter doesn't handle aggregation (record with count field) and will refuse to process those logs. Also it doesn't support changing the fields in the middle of the log file. It will ignore records that don't have the same schema than the first one defined.

Examples

To process a log as produced in the W3C Extended Log Format:

 $ w3c_extended2dlf < extended.log

w3c_extended2dlf will be rarely used on its own, but is more likely called by lr_log2report:

 $ lr_log2report w3c_extended < /var/log/httpd/extended.log

Version

$Id: w3c_extended2dlf.in,v 1.17 2009/03/15 08:10:55 vanbaal Exp $

Releases

7 releases since Debian 3.0 (Woody); the text changed 6 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. Arch

Authors

Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.