Created
May 3, 2016 10:12
-
-
Save convenient/459cbf6649bb73dd7343340cf6e145f8 to your computer and use it in GitHub Desktop.
apache access log group by iP
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
cat /var/log/httpd/access.SSL.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -20 |
grep -E "GET /(.*)/shop-by/(.*) HTTP" 7am.log
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://unix.stackexchange.com/questions/16885/how-would-i-extract-the-user-agent-strings-from-a-log-file
cut -d\" -f 6