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