Hits By Country
Is there any way view website hits by country in command line.
-
Hello :), No, You can not check this through command line but you can check live access logs of any domain through command line. 0 -
We can dig out from logs: LIST=`grep -R "$domain" /usr/local/apache/domlogs/* | awk '{print $1}' |cut -d ':' -f2| sort -nr | uniq -c |grep -v "-" | sort -nr | head -1|awk '{print $2}'` for i in `cat $LIST`; do geoiplookup $i | grep "GeoIP Country Edition" done0 -
Hello, I'm happy to see you were able to find a solution for separating the access requests by country. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments