Weblog entry #2 for chris
#2
Apache2 virtual host bandwidth logging
Posted by chris on Wed 5 Nov 2008 at 16:48
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 :)
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
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
regards
Nicolas Gliksberg
xdie[at]uruhost.com.uy
[ Parent | Reply to this comment ]
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 | Reply to this comment ]
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.
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 | Reply to this comment ]
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 | Reply to this comment ]