httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <>
Subject Re: [users@httpd] Apache Bandwidth Utilization / Reporting
Date Mon, 25 Nov 2002 23:35:38 GMT
from a friend that did this exact thing,
full steps for duplicating ( we have no idea when the hard drives ect 
will be returned, a warezer put pirated movie on his server, cost him 
the servers he was using for data transfer study )

"It's not too tough... if I ever get my #@$! hard drives and tape/CD 
backups returned to me from UEN, I could just post you a copy of the 

Until then, you have to do a couple of things...

For data transfer:

Rig up awk to parse your httpd logs for anything ending in .zip, .exe, 
.sit, and .ogg, and whatever else you have set out for download. Then 
pipe that into something (awk or grep, machts nichts) that will suss out 
the filesize (you can either try and snag it out of the httpd call line, 
or out of an ls-generated table that will match the filename to the 
filesize) . Then, pipe those numbers into a flat temporary text file, 
and at the end of the day, let cron total the things all together, then 
do some housekeeping by running /dev/null against the temp number file, 
and backing up the daily httpd log (I used `date -I` to latch a 
timestamp onto the filename), then running /dev/zero against the main 
log file. You can then take that daily log file and run another script 
against it, like I did, to count how many download requests you did have 
(grep|count), count unique hits altogether (grep|diff|count), then echo 
the error lines for your clients to look at when they get lost on something.

HTH a little... "

hope that helps.
btw, the person quoted teaches networking / server admin at university.
I asked him your question, this was his reply. his preffered os is red 
hat linux.


Steve Leach wrote:
> Perhaps that is what is needed for bandwidth checks - my own requirement is
> just for the reporting side (for now at least).
> I'm looking at the modules and trying to see which can actually do
> reporting, and which are functionally implementing limits on the bandwidth.
> Is anyone else doing this type of thing now?
> Best Regards,
> Steve Leach
> IT/Network Manager
> MI International Ltd
> ----- Original Message -----
> From: "Porter, Mark" <>
> To: <>
> Sent: Monday, November 25, 2002 2:48 PM
> Subject: RE: [users@httpd] Apache Bandwidth Utilization / Reporting
>>Aren't you describing mod_throttle? I personally have never used it, but
>>in the cursory glance I gave the module description, it sounds like it
>>may be what you're looking for.
>>-----Original Message-----
>>From: Sander Holthaus - Orange XL []
>>Sent: Monday, November 25, 2002 9:57 AM
>>Subject: Re: [users@httpd] Apache Bandwidth Utilization / Reporting
>>Personally, I think such a feature should be implemented in Apache for a
>>very basic protection against (D)DoS-attacks. So you can set things like
>>MaxBandwith (per day/hour) or MaxPeakBandwith on a per server and
>>per-virtual-host basis.
>>Imagine what could happen if you are away for a few hours and someone
>>decides to fill up your connection with HTTP-requests. Such attacks are
>>becoming more frequent, and put a severe strain on not only the websever
>>itself, but also servers and networkcomponents around it. Not to mention
>>economic damages...
>>Anyone any thoughts on this?
>>Kind Regards,
>>Sander Holthaus
>>----- Original Message -----
>>From: "Steve Leach" <>
>>To: <>
>>Sent: Monday, November 25, 2002 10:57 AM
>>Subject: [users@httpd] Apache Bandwidth Utilization / Reporting
>>>Is there a module for Apache 1.x or 2.x (new server so I have the
>>>choose!!!), that will allow me to see what the cumulative bandwidth
>>>for (a) individual Virtual Hosts and (b) the Apache Server as a whole?
>>>would like to be able to produce  adaily report that includes this
>>>information in a formal bandwidth costing exercise.
>>>If there is no feature (or module) for Apache, is there a product
>>>can recommend that will provide such functionality.
>>>Thanks in advance.
>>>Best Regards,
>>>Steve Leach
>>>IT / Network Manager
>>>MI International Ltd

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