Link to home
Start Free TrialLog in
Avatar of apophis
apophis

asked on

Logging and summarizing squid usage

I need to create a monthly summary of the web usage of a particular IP through our proxy server.
We are using squid, but do not wish to log the entire month's usage for our entire customer base!
My current plan is to run tail -f /usr/local/squid/logs/access.log |grep <ip> >> /usr/local/squid/logs/access.ip.log
 constantly in the background and have a cron job that will take this log, and run calamari on it monthly to generate
the report. This does not seem too elegant, but with limited C and Perl knowledge, can anyone reccomend a better way?
Avatar of jacekf
jacekf

Maybe you should use tcpdump. For example
tcpdump ip src <ip_number> >> access.ip.log
ASKER CERTIFIED SOLUTION
Avatar of LarsG
LarsG

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial