Re: [squid-users] Extracting selected data from logfile

From: Frog <frog_at_rsf1.net>
Date: Fri, 20 Mar 2009 13:27:44 +0000 (GMT)

----- Original Message -----
From: "John Doe" <jdmls_at_yahoo.com>
To: "Frog" <frog_at_rsf1.net>
Sent: Friday, 20 March, 2009 11:19:12 GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [squid-users] Extracting selected data from logfile

From: Frog <frog_at_rsf1.net>
> Thank you Chris for the suggestion. It helped enormously. I have extracted the
> data I was looking for by using the following:
> tail -n 5000 access.log | grep "403" | awk '{print $1}' | uniq -d > file.txt

Watch out, grep "403" will grab ab403cd and such...

JD

Good point JD!

I'm going to use TCP_DENIED instead.

Regards,
Frog
Received on Fri Mar 20 2009 - 13:24:46 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 20 2009 - 12:00:03 MDT