You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shailesh Garg <gs...@gmail.com> on 2006/04/27 11:59:36 UTC

[users@httpd] Finding Number Of Complete Downloads in access_log

I am looking for a way to find the number of successfully downloads for a
particular file. I have noticed 2 issues :-
1. Even when the client cancels the download in between, log shows status
code as 200.

2. For range downloads, multiple 206 enteries are logged and one 200 entry,
even if the download is cancel in between.


Could any one help in this.


Thanks,
Shailesh

Re: [users@httpd] Finding Number Of Complete Downloads in access_log

Posted by Joshua Slive <jo...@slive.ca>.
On 4/27/06, Shailesh Garg <gs...@gmail.com> wrote:
> I am looking for a way to find the number of successfully downloads for a
> particular file. I have noticed 2 issues :-
>
>
> 1. Even when the client cancels the download in between, log shows status
> code as 200.
>
> 2. For range downloads, multiple 206 enteries are logged and one 200 entry,
> even if the download is cancel in between.

Apache logs the status sent to the client, which is 200 even if the
client cancels halfway through.  If you want to get a better idea of
whether a download completed, you can use mod_logio to expose the
actual bytes sent down the wire and compare that to the file size. 
Also see the %X logformat directive which indicates if the connection
was aborted.

Note that silly download accelerators may do all sorts of crazy stuff,
which will throw off your statistics.  Those are the source of many of
the 206 responses.

Joshua.

---------------------------------------------------------------------
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