go ahead... be a heretic | |
PerlMonks |
Re: squid-billingby zigdon (Deacon) |
on Oct 27, 2004 at 12:43 UTC ( [id://402974]=note: print w/replies, xml ) | Need Help?? |
Sounds like you want to parse the squid log, keep track of which IPs are hitting it where, and how much data they're getting. Of course, you'll have to keep track of how big the items in the cache are, since squid doesn't report file size for cache hits. But it does when it loads a file into the cache, so you should be able to store it in a hash of some sort. Hope this sends you in the right direction! -- zigdon
In Section
Seekers of Perl Wisdom
|
|