I am running an Apache Tomcat 6 website and would like a way to somehow log the amount of bandwidth used for each virtual host on the site. Is there such a plugin or logging class that I could use to achieve this? Or how much one go about writing one?
As a workaround, if I could figure out how to log individual requests along with the amount of bytes transferred (not the size the file, but the number of actual bytes sent on the wire), I guess I could write a script to add them up. I'd prefer some other type of module though, since I'm not so concerned about tracking individual pagehits.