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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/27/06, Shailesh Garg <gshailesh@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux