Created
April 30, 2020 02:54
-
-
Save void285/017da766617bc087d1ae93f7da03d7cc to your computer and use it in GitHub Desktop.
Get a sorted list of user ip from apache log
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/apache2/mysite_access.log | awk '{print $1}' | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment