Created
January 20, 2014 17:27
-
-
Save mabrizio/8524617 to your computer and use it in GitHub Desktop.
Visitors per ip per day - Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tcsh | |
foreach i (`cat access.log | cut -d \] -f1 | cut -d \[ -f2 | cut -d \: -f1 | perl -ne 'print unless $seen{$_}++' `) | |
printf "$i -> " | |
printf `grep $i access.log | awk '{print $1}' | sort | uniq | wc -l` | |
echo " different IPs" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment