Favorite tool to measure bandwith usage by domain

Hello.

I have a set up with Centos and Apache and a few virtual servers. Linode gives me my total bandwith usage.

What would be the best way to know the consumption of bandwith per domain?

Thanks!

4 Replies

@jcr:

Hello.

I have a set up with Centos and Apache and a few virtual servers. Linode gives me my total bandwith usage.

What would be the best way to know the consumption of bandwith per domain?

Thanks!

Setup a stats package like awstats

Thanks for the answer.

I am wondering if there is a way to avoid analyzing the Apache's log file.

@jcr:

Thanks for the answer.

I am wondering if there is a way to avoid analyzing the Apache's log file.

I don't think so, since the division between domains isn't happening until you get to apache.

side note, apache has a mod sql log module, which allows you to log directly to a database..

i used that to work out domain usage for ages.. just wrote a few triggers that on insert into the logtable update the usage table and then purge the log table daily..

just gota be careful with it because if your database starts slowing down for whatever reason, apache will lag as well.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct