Search squid archive

Re: geting (stripping ) information from squid log files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: pent 5971 <pent5971@xxxxxxxxx>
> 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


      


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux