IP Monitoring Script

Dear All,

I am new to Shell Programming, but I need a script which will monitor the different IP's in the live logs.
Condition:-
The script will monitor the logs continously and should print only those IP's which exists more than 3 times per day.

Please do help me.

Thanks and regards,
Akhtar Bhat

Hope this helps:

cat ip.list | while read X; do

if [ `grep $X logfile.log | wc -l` -ge 3 ]; then
echo $X
fi

done