Fog Creek Software
Discussion Board




Reading Apache Access Files - What is this?

I have been running apache for a few days now on a server - and I can't figure out what the Apache access_log file is capturing - below is a sample line.

IP - - [05/Jul/2004:16:43:16 -0700] "GET /dir/new HTTP/1.1" 200 249


I do not know what the two last columns are capturing - i.e. '200' and '249' - would anyone be able to help me out on this?

Mneumonic
Monday, July 05, 2004

I think it's 200 = OK, and 249 = size in bytes of requested document.

Fred
Monday, July 05, 2004

I don't know about the 249, but 200 is a the HTTP response code that Apache sent (which in this case means "OK", the file was found and returned.

Justin Johnson
Monday, July 05, 2004

It depends on how Apache is configured to write data to the log files. More info at:  http://httpd.apache.org/docs-2.0/logs.html#accesslog
For example, on most of our Apache servers, the 15th and 16th fields of the log are bytes out and bytes in.....but we've specified a CustomLog format specifically for our needs.
As already mentioned, the 200 = OK and the other number could be the bytes in or bytes out.

Jerry
Monday, July 05, 2004

If you are new to it all, you might want to work with the aid of a Server Log analyser

http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=apache+logs&catid=all

Tapiwa
Tuesday, July 06, 2004

I like "Weblog Expert" and the Lite edition is great too.

www.MarkTAW.com
Tuesday, July 06, 2004

*  Recent Topics

*  Fog Creek Home