This module is contained in the
and is compiled in by default. It provides for logging of the requests
made to the server using the Common Logfile Format. This module has
been replaced by mod_log_config in Apache 1.2
Log file format
The log file contains a separate line for each request. A line is composed
of several tokens separated by spaces:
host ident authuser date request status bytes
If a token does not have a value then it is represented by a hyphen (-).
The meanings and values of these tokens are as follows:
- The fully-qualified domain name of the client, or its IP number if the
name is not available.
- If IdentityCheck is enabled and the
client machine runs identd, then this is the identity information reported
by the client.
- If the request was for an password protected document, then this is
the userid used in the request.
- The date and time of the request, in the following format:
date = [day/month/year:hour:minute:second zone]
day = 2*digit
month = 3*letter
year = 4*digit
hour = 2*digit
minute = 2*digit
second = 2*digit
zone = (`+' | `-') 4*digit
- The request line from the client, enclosed in double quotes
- The three digit status code returned to the client.
- The number of bytes in the object returned to the client, not including
Syntax: TransferLog file-pipe
Context: server config, virtual host
The TransferLog directive sets the name of the file to which the server will
log the incoming requests. File-pipe is one
Security: if a program is used, then it will be
run under the user who started httpd. This will be root if the server
was started by root; be sure that the program is secure.
- A filename
- A filename relative to the ServerRoot.
- `|' followed by a command
- A program to receive the agent log information on its standard input.
Note the a new program will not be started for a VirtualHost if it inherits
the TransferLog from the main server.
The manual translated into Japanese is here.