How do I associate server traffic to a domain hosted on that server?

Posted by morley on Server Fault See other posts from Server Fault or by morley
Published on 2010-04-29T21:45:10Z Indexed on 2010/04/29 21:57 UTC
Read the original article Hit count: 245

Filed under:
|
|
|

I have three or four Linux servers, each of which hosts anywhere from 5 to 50 domains. Each domain has its own folder:

/www/projectname/web/

Logs go in:

/www/projectname/log

However, if there's a traffic spike (or, as I see it on my end, a memory usage spike), I'm not sure how to figure out which domain is responsible for the traffic without running tail -f on each of the projects and making an educated guess based on how fast things scroll.

There's got to be a better way! There probably is, but I haven't seen it. And the last time I checked, bandwidth monitors only report system-wide load.

So if anyone knows how to do this the right way, please let me know.

Thanks!

© Server Fault or respective owner

Related posts about network-traffic

Related posts about traffic