Chapter 16. WWW Supported Log Format
Prev | Part II. Log Formats | Next

## Chapter 16. WWW Supported Log Format

The WWW superservice supports four log file formats which makes it possible to support a wide range of web servers like Apache™, IIS or Boa™.

## Common Log Format

Common Log Format (CLF) is a standard log format that was originally implemented in the CERN httpd web server but that is supported nowadays by most web servers. Apache™, IIS and Boa™ can be configured to log in that format.

The Common Log Format has the following format:

    remotehost rfc931 authuser [date] "request" status bytes

where the fields have the following meaning:

`remotehost`

  The host that made the request. This can be given as an IP address or a hostname.

`rfc931`

  The result of an ident lookup on the host. This is usually not used.

`authuser`

  The authenticated username.

`date`

  The timestamp of the request.

`request`

  The first line of the HTTP request. Usually in the format `"`method` `file` `protocol`"`.

`status`

  The result status of the request. i.e. `200`, `301`, `404`, `500`.

`bytes`

  The size of the response sent back to the client.

Example of log lines in Common Log Format :

    127.0.01 - - [11/03/2001 12:12:01 -0400] "GET / HTTP/1.0" 200 513
    dsl1.myprovider.com - francis [11/03/2001 12:14:01 -0400] \
    "GET /secret/ HTTP/1.0" 200 1256

Prev | Up | Next
Chapter 15. Syslog Supported Log Formats | Home | Combined Log Format