Created
March 9, 2020 02:08
-
-
Save jachermocilla/6118a7acb51fd1d6096611a1b8ab90e2 to your computer and use it in GitHub Desktop.
Count the number of downloads of publications from nginx access logs
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
sudo zcat access.log.*.gz | grep /publications | grep pdf | awk '{print $7}' | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment