Re: [squid-users] geting (stripping ) information from squid log files

From: John Doe <jdmls_at_yahoo.com>
Date: Fri, 28 Aug 2009 01:46:44 -0700 (PDT)

From: pent 5971 <pent5971_at_gmail.com>
> I can scroll the log squid log archives with tail command but
> sometimes i want to get some information from it from its coloumns.
> like getting the IP addresses from the logs and take it to an other
> file as list.

  awk -F\| ' { print $1 } ' squid.access.log > ips.lst

You can also add '| sort | uniq -c | sort -n' to get the number of queries for each IP, sorted...

JD

      
Received on Fri Aug 28 2009 - 08:47:42 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 28 2009 - 12:00:03 MDT