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"                                                       
                            
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>,              
                      
                    tmail.com>            <Jim_Brouse/[EMAIL PROTECTED]>               
                     
                                         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




Reply via email to