httpd-users mailing list archives

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

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!

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

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 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message