Bash and apache fun (not profit)
So who’s watching your site? Military spooks?
tail -n 3000 access_log | awk '{print $2}' |sort | uniq | while read line; do echo $line `host $line|awk '{print $5}'`; done
And what about referrers?
tail -n 30000 access_log | awk '{print $12}'|sort | uniq -c | sort -nr | less
You’ll probably have to change these depending on your apache log file since mine is a bit custom
Got any more similar apache + bash tips?