>>>IP address so
> and so accessed that site 10 times and the whereas a different ip visited
> it 100 times.
Run this script:
#!/bin/sh
#Squid Reporting
echo ""
echo "##########################################################################"
echo " Squid Report "
echo " `date` "
echo "##########################################################################"
echo ""
echo "Given site = $1"
echo "Access count =`grep $1 $2 | wc -l`"
echo "IP-Address Access count"
for ip in `grep $1 $2 | awk '{print $3}' |sort -n |uniq`
do
echo "$ip `grep $1 $2 |grep $ip $2|wc -l`"
done
echo ""
echo "##########################################################################"
Argument 1 = Site address
Argument 2 = access.log location
Regards,
Muthukumar.
India: 0-91-94431-01756
Received on Wed Feb 18 2004 - 07:53:24 MST
This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST