Re: [squid-users] Squid Activity/Usage and Reporting Tools

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 2 Aug 2003 03:36:10 +0200

On Friday 01 August 2003 17.56, Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG
wrote:
> That worked great: grep " http://www.website.net" access.log | tr
> -s ' ' | cut -d' ' -f3 | sort
> -n | uniq > /filename
>
>
> What is the best way to add to this a number next to each IP of the
> amount of times a particular site was contacted

Add a -c argument on the last uniq command above..

> and the date of last contact?

This will require a little programming, beyond what the above pipeline
is capable of.

I would recommend awk or perl for the job.

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Fri Aug 01 2003 - 19:36:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:32 MST