httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex <finest...@yahoo.com>
Subject [users@httpd] question about %b, %O (log_io) and %X formats
Date Tue, 17 Apr 2007 13:00:52 GMT
Hello

I run into strange log entries, which report very different
response size by %b and %O 
(from log_io module) log formats. 

My understanding was that %b gives the number of bytes sent to
client (actually the file size, 
if request was completed), and %O gives size of response+headers.


Further, if %X == X that means the response was not competed.

However, I run into records where %b is exactly the file size,
while %X is X, and %O is much
lower than %b.

As I rely upon %b to count file downloads, this seems very
disturbing. :( Do I miss something here?

Apache version 2.0.49 on Centos Linux. Below is a sample line
from log.

Thanks to everyone who can help!
Alex

xx.xx.xx.xx - - [13/Apr/2007:04:05:37 -0500] "GET /file.exe
HTTP/1.1" 200 2952375 "http://referer.com" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1)" 10200772 1176455137 X 354
132425

format is 
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D
%{%s}t %X %I %O"



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message