This site is now 100% read-only, and retired.

XML logo

Apache2 virtual host bandwidth logging
Posted by chris on Wed 5 Nov 2008 at 16:48
Tags: none.
Looking for something to log virtual host bandwidth for apache 2. I have many hosts spread across 6 IP addresses with name based virtual hosting.

I can find several options for throttling/reducing/sharing etc - but nothing about logging.

I'd really like some form of RRD graphing to show bandwidth usage over time per virtual host.

Not sure it exists - but thought I'd ask here just in case :)

 

Comments on this Entry

Re: Apache2 virtual host bandwidth logging
Posted by Anonymous (201.221.xx.xx) on Wed 5 Nov 2008 at 19:28
Hi try awstats.

regards

Nicolas Gliksberg

xdie[at]uruhost.com.uy

[ Parent ]

Re: Apache2 virtual host bandwidth logging
Posted by chris (213.187.xx.xx) on Wed 5 Nov 2008 at 19:40
[ View Weblogs ]
Hmm - yes - that does include it doesn't it. I may just have to write a small data extracter that goes over all data files and graphs monthly bandwidth against domain (each site can be viewed on its own - I'm after some kind of overview) - thanks for the tip.

[ Parent ]

Re: Apache2 virtual host bandwidth logging
Posted by simonw (84.45.xx.xx) on Thu 6 Nov 2008 at 05:09
[ View Weblogs ]
Note Apache logs don't include bandwidth by default.

mod_logio will allow you to measure bandwidth used (compiled into Debian Apache), just add %I and %O to the log format string.

There are probably many tools to manage this data. "Webalizer Extended" claims to support using it as well as awstats. Although it is the work of moments to amend one of the many Perl based log parsing tools, or persuade awk to do the job if you prefer.

[ Parent ]

Re: Apache2 virtual host bandwidth logging
Posted by diveli (150.101.xx.xx) on Fri 7 Nov 2008 at 04:38
[ View Weblogs ]
That's all I do, just with standard Webalizer in Incremental mode, and I've got some scripts that awk the webalizer raw file at the end of each month and convert the inbound/outbound to useful numbers. Does the job

[ Parent ]