httpd.log
na_httpd.log - Log of HTTP
/etc/log/httpd.log
The HTTP server logs an entry for every file retrieved via
HTTP. This log, written to /etc/log/httpd.log, is stored
in the "Common Log Format," which is used by many WorldWide
Web servers.
Each entry in /etc/log/httpd.log consists of one line with
seven fields. The fields are, in order:
- address
- The IP address of the HTTP
client requesting the file.
- rfc931
- This field is always "-".
- authuser
- This field is always "-".
- date
- The time and date the request
was is reported in the format
"[Day/Mon/Year:HH:MM:SS]",
which is logged in universal
time (GMT) rather than the
local time zone.
- request
- A quoted string is recorded for
the method (request type) and
file involved in the request.
- result
- The status code for the
request, as defined in RFC
1945, the HTTP protocol specification.
(See below.)
- bytes
- The size of the file in bytes.
Possible values for result codes include:
- 200
- Success: the requested file
was transmitted.
302 Redirected (see
/etc/httpd.translations).
- 304
- Not modified (client cache
used).
- 400
- Bad request.
- 401
- Unauthorized request.
- 403
- Access to file prohibited.
- 404
- File not found.
- 503
- HTTP server disabled.
The size of the log file can be restricted by the option
httpd.log.max_file_size.
na_httpd.translations(5)
RFC 1945, "Hypertext Transfer Protocol -- HTTP/1.0"
Some Web servers report size statistics differently for
result codes other than 200. For example, a file size of
0 is often reported for result code 304 (Not modified).
The log file grows automatically and is never reset. It
is your responsibility to rotate files and empty the log
files regularly.