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?