Apache log analyzer for bandwidth usage

apache-2.2bandwidthlogging

I'm running a server that hosts several different websites and content. I want to know which websites and which files or services are using up the bandwidth. Do any of the freeware apache log analyzers do this?

For example, it would be nice to know amount of bandwidth consumed per different URL ever requested from the server.

Best Answer

awstats includes the total bandwidth of each entry in every hit-count statistic it reports. So you get bandwidth per day, per month, per hour of the day, per country, per client IP, per URL, etc. The bandwidth amounts may not be dead-on accurate since they're computed from the Apache log's recorded transfer size, which doesn't include every single byte sent over the network (things like the internals of a TCP packet aren't included), but they're pretty close. Just don't rely on awstats (or any logfile analyzer) to tell you when you're hitting your hosting provider's bandwidth cap ;-)

Related Topic