Log formats for HTTP Server

This topic provides information about log formats and log files.

Log files contain one line for each request. A line is composed of several tokens separated by spaces. If a token does not have a value then it is represented by a hyphen (-). A line in a log file might look like the following:

192.168.1.3 - - [18/Feb/2000:13:33:37 -0600] "GET / HTTP/1.0" 200 5073

The following log file types are supported:

Common (Access)
This format is the common log file format defined by the W3C working group. This format is compatible with many industry standard log tools. For more information see Logging Control In W3C httpd Link outside Information Center.

The common log format is defined by the following string:

"%h %l %u %t \"%r\" %>s %b" 
Extended (Access, Referer, and Agent)
This format has two types: NCSA extended log format and the W3C extended log format. The NCSA extended log format is the common log format appended with the agent and referer information. The W3C extended log format is defined by the W3C working group and allows you to determine the format of the log entry. For more information see Extended Log File Format Link outside Information Center.

NCSA's extended format is defined by the following string:

"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"\%{User-agent}i\" 
Data Description Specification (DDS)
This format is an IBM® i database (physical) file in QSYS.LIB. This format allows you to write a database query program to generate reports. This format contains the same information as the common log format.