Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: squid-billing

by zigdon (Deacon)
on Oct 27, 2004 at 12:43 UTC ( #402974=note: print w/replies, xml ) Need Help??


in reply to squid-billing

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://402974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2019-06-24 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (99 votes). Check out past polls.

    Notices?