[plug] logging incomplete downloads in Apache
Cameron Patrick
cameron at patrick.wattle.id.au
Mon Apr 19 00:26:24 WST 2004
Craig Ringer wrote:
| I was wondering ... does anyone here know of a way to get Apache to log
| downloads that are not completed?
I think it /does/ log them - or at least enough information for you to
determine which downloads are completed and which aren't given a bit
of post-processing.
e.g.
138.9.200.15 - - [18/Apr/2004:08:52:06 +0800] "GET /cameron/ooo_fonts1.png HTTP/1.1" 200 25488 "http://lists.debian.org/debian-openoffice/2003/debian-openoffice-200312/msg00027.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040328 Firefox/0.8"
You can see that 25488 bytes were transferred in this instance.
However, if I look in my public_html directory, I see that
ooo_fonts1.png is 82831 bytes long - so evidently the transfer was
cancelled about a quarter of the way through. (Not too surprising,
since the file in question isn't terribly exciting.)
With some 'leet ${SCRIPTING_LANGUAGE} hackery you could probably write
something to analyse your web logs for incomplete downloads.
Obviously, though, this will be made tricky if the mapping between the
URLs and files on disc is non-trivial, and probably impossible if CGI
is involved.
Cameron.
More information about the plug
mailing list