View Domlogs for top visitors
From James Dooley's Wiki
Overview
Enter a partial date string to get top visitors during that period. Will also return site and all user agents that IP has used.
Script
SuPHP Version
[bash,n]echo "Date String [31/Mar/2011:13:4]"; read datestring; _
for i in $(grep $datestring /usr/local/apache/domlogs/* | awk {'print $1'} | sort | uniq -c | sort -n | sed -e 's/^[ \t]*//' | awk '{print $1 ":" $2}' | tail -10);_
do count=`echo $i | cut -d: -f1`;_
ip=`echo $i | cut -d: -f3`;_
domain=`echo $i | cut -d: -f2`; _
agent=`grep $datestring $domain | grep $ip | cut -d '"' -f6 | sort | uniq -c | sort -n | awk {'print "\n\t" $0'}` ;_
echo -e "$count $ip $domain $agent"; done