grep `grep givensite.com /var/log/squid/access-02-13-04.log |tr -s ' ' |
cut -d' ' -f3
|sort -n|uniq` /var/log/squid/access-02-13-04.log | wc -l
The above command tells the total amount of times a particular site was
visited by all ips but how could you change this so it says IP address so
and so accessed that site 10 times and the whereas a different ip visited
it 100 times.
Jim
"Muthukumar"
<kmuthu_gct@ho To: <squid-users@squid-cache.org>,
tmail.com> <Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG>
cc:
02/17/2004 Subject: Re: [squid-users] Reporting on Squid
11:15 AM
> I use the below command to determine who has been to a particular site
but
> grep givensite.com /var/log/squid/access-02-13-04.log |tr -s ' ' | cut
-d' ' -f3 |sort -n|uniq
> what would I need to add to determine how many times they did visit that
> site.
grep `grep givensite.com /var/log/squid/access-02-13-04.log |tr -s ' ' |
cut -d' ' -f3
|sort -n|uniq` /var/log/squid/access-02-13-04.log | wc -l
Regards,
Muthukumar.
India: 0-91-94431-01756
Received on Tue Feb 17 2004 - 11:40:32 MST
This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST