Measuring Bandwidth Usage - TechHui2024-03-28T20:33:14Zhttp://www.techhui.com/forum/topics/1702911:Topic:21840?groupUrl=sysadmins&commentId=1702911%3AComment%3A22264&x=1&feed=yes&xn_auth=noYou can also use a little scr…tag:www.techhui.com,2008-09-18:1702911:Comment:222642008-09-18T16:29:31.897ZKurt Sussmanhttp://www.techhui.com/profile/Kurt
You can also use a little script magic on your log file to pull out the date and bytes transferred for the directory in question, then total by day. But a web analytics tool will give you that and more.
You can also use a little script magic on your log file to pull out the date and bytes transferred for the directory in question, then total by day. But a web analytics tool will give you that and more. I haven't tried it myself, bu…tag:www.techhui.com,2008-09-14:1702911:Comment:219982008-09-14T02:27:41.780ZJosh Kuohttp://www.techhui.com/profile/JoshKuo
I haven't tried it myself, but I suspect Google Analytic may be configured/hacked to do what you want. I don't know any free web analytic tools that would track bandwidth usage by directory (recursive?)... There are plenty of free apache log analyzers out there, you might be able to embed in your PHP code some kind of bandwidth usage stat and stick it in the apache log, or plot it to MRTG.<br />
<br />
You _could_ run Wireshark to look at your traffic, you'd see all the HTTP headers and theoretically you…
I haven't tried it myself, but I suspect Google Analytic may be configured/hacked to do what you want. I don't know any free web analytic tools that would track bandwidth usage by directory (recursive?)... There are plenty of free apache log analyzers out there, you might be able to embed in your PHP code some kind of bandwidth usage stat and stick it in the apache log, or plot it to MRTG.<br />
<br />
You _could_ run Wireshark to look at your traffic, you'd see all the HTTP headers and theoretically you can parse our the directory/file that's being hit/accessed... but Wireshark is meant to be a network sniffer, and this would be too inefficient (and resource intensive) to be practical. Thanks for your reply, Ken. I…tag:www.techhui.com,2008-09-12:1702911:Comment:219042008-09-12T19:25:37.364ZTruman Leunghttp://www.techhui.com/profile/TrumanLeung
Thanks for your reply, Ken. I finally came to that same conclusion about Wireshark after researching it some more. I'm glad that you confirmed it for me.
Thanks for your reply, Ken. I finally came to that same conclusion about Wireshark after researching it some more. I'm glad that you confirmed it for me. If you're interested in per-d…tag:www.techhui.com,2008-09-12:1702911:Comment:218762008-09-12T06:44:35.874ZKen Mayerhttp://www.techhui.com/profile/KenMayer
If you're interested in per-directory traffic for a web application, it sounds like you want an application layer tool like webalizer that creates stats from apache logs. It won't give you a complete bit count, but it will be close, modulo network layer headers. I thought that Wireshark worked at the network layer, so it wouldn't know much about directories or other application layer structure.
If you're interested in per-directory traffic for a web application, it sounds like you want an application layer tool like webalizer that creates stats from apache logs. It won't give you a complete bit count, but it will be close, modulo network layer headers. I thought that Wireshark worked at the network layer, so it wouldn't know much about directories or other application layer structure.