Log - Apache Common Log Format
Table of Contents
About
Apache Common Log Format is a Log format for a HTTP request received by a web server that comes from the Apache Web Server.
Articles Related
Apache Common Log Format
Log file entry for a request:
127.0.0.1 - - [24/Jul/1973:08:32:01 -0400] "GET /images/gerardnico.gif HTTP/1.0" 200 2564
where:
- 127.0.0.1 is the IP address (or host name, if available) of the client (remote host) which made the request to the server.
- - The “hyphen” in the output indicates that the requested piece of information (user identity from remote machine) is not available.
- - The “hyphen” in the output indicates that the requested piece of information (user identity from local logon) is not available.
- <wrap box>[24/Jul/1973:08:32:01 -0400]</note> The server “end time” to process the request. The format is: <wrap box>[day/month/year:hour:minute:second timezone]</note>
- day = 2 digits
- month = 3 letters
- year = 4 digits
- hour = 2 digits
- minute = 2 digits
- second = 2 digits
- zone = (+ | -) 4 digits
- <wrap box>“GET /images/launch-logo.gif HTTP/1.0”</note> The first line of the request string from the client. It consists of a three components:
- the request method (e.g., GET, POST, etc.),
- the path (a Uniform Resource Identifier),
- and the client protocol version.
- <wrap box>200</note> The status code
- <wrap>2564</note> The size of the object returned to the client, not including the response headers. If no content was returned to the client, this value will be “-” (or sometimes 0).