Apache byte logging questions
Hey folks! I've got an interesting apache logging question that someone might be able to answer. I know this isn't an apache specific list, but someone might know. I maintain a server that hosts game files for another company. The company wants to know how many successful downloads of the game was completed - not just transfers that started but didn't complete. I'm thinking the best way to pull out this info is to find each host in the logs, and combine the bytes transferred to see if it equals the size of the file. Is there any easier way to do this? Has anyone ever dealt with such a situation before and can provide some advice? Thanks in advance! -- DL
Re: Apache byte logging questions
You could probably grep for partial content headers, and not include them. Off the top of my head I can't think of the code though (201?). Jon On Fri, 2003-04-18 at 22:08, dl wrote: Hey folks! I've got an interesting apache logging question that someone might be able to answer. I know this isn't an apache specific list, but someone might know. I maintain a server that hosts game files for another company. The company wants to know how many successful downloads of the game was completed - not just transfers that started but didn't complete. I'm thinking the best way to pull out this info is to find each host in the logs, and combine the bytes transferred to see if it equals the size of the file. Is there any easier way to do this? Has anyone ever dealt with such a situation before and can provide some advice? Thanks in advance! -- DL
Re: Apache byte logging questions
Looks like it's code 206. Thanks, this is a good place to start! On 18 Apr 2003, Jon Wood wrote: You could probably grep for partial content headers, and not include them. Off the top of my head I can't think of the code though (201?). Jon On Fri, 2003-04-18 at 22:08, dl wrote: Hey folks! I've got an interesting apache logging question that someone might be able to answer. I know this isn't an apache specific list, but someone might know. I maintain a server that hosts game files for another company. The company wants to know how many successful downloads of the game was completed - not just transfers that started but didn't complete. I'm thinking the best way to pull out this info is to find each host in the logs, and combine the bytes transferred to see if it equals the size of the file. Is there any easier way to do this? Has anyone ever dealt with such a situation before and can provide some advice? Thanks in advance! -- DL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Apache byte logging questions
On Sat, 2003-04-19 at 07:08, dl wrote: [...] I maintain a server that hosts game files for another company. The company wants to know how many successful downloads of the game was completed - not just transfers that started but didn't complete. I'm thinking the best way to pull out this info is to find each host in the logs, and combine the bytes transferred to see if it equals the size of the file. Is there any easier way to do this? Has anyone ever dealt with such a situation before and can provide some advice? Be aware that some evil download utilities do multiple simultaneous partial download requests; ie request bytes 0-16K, bytes 16k-32k, 32k-48k etc all at once. They do this to steal more bandwidth in an attempt to achieve a faster download. There may be multiple requests for any partial downloads that did not complete. This means many of those partial downloads may in fact be parts of a successful download. When you factor in proxies obscuring the origin of the request, not caching partial requests, or sometimes doing whole file requests for a clients partial request, it becomes very hard to figure out. Good luck. -- Donovan Baardahttp://minkirri.apana.org.au/~abo/