Last active
January 7, 2020 11:26
-
-
Save SaeedSoltoon/c35250ea08f44fb7dfe34f2838edcf89 to your computer and use it in GitHub Desktop.
Get list of all user agents from nginx access log
This file contains hidden or 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
awk -F'"' '/GET/ {print $6}' /var/log/nginx-access.log | cut -d' ' -f1 | sort | uniq -c | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment