Last active
May 17, 2019 12:11
-
-
Save mercuriete/0a4327eaa956ab0e37e87cd94b9c40ef to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# cat all access log | |
# take the url without query params (?param=value) | |
# group count and sort | |
zcat ssl_access.log.*.gz | cut -d'"' -f2 | cut -d' ' -f2 | cut -d'?' -f1 | sort | uniq -c | sort -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment