Apache HTTP Server Version 1.3
You are looking at the documentation for the
1.3 version of the Apache HTTP Server, which is no longer
maintained, and has been declared "end of life". If you are in
fact still using the 1.3 version, please consider upgrading.
The current version of the server is 2.4.
In the current version of the server, you should use
This module is contained in the
file, 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
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
- 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 a 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
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
- The three digit status code returned to the client.
- The number of bytes in the object returned to the client,
not including any headers.
server config, virtual
The TransferLog directive sets the name of the file to which
the server will log the incoming requests. File-pipe
is one of
- 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. See, just as an example, cronolog.
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
Security: See the security tips document
for details on why your security could be compromised if the
directory where logfiles are stored is writable by anyone other
than the user that starts the server.