Skip to content

Instantly share code, notes, and snippets.

@void285
Created April 30, 2020 02:54
Show Gist options
  • Save void285/017da766617bc087d1ae93f7da03d7cc to your computer and use it in GitHub Desktop.
Save void285/017da766617bc087d1ae93f7da03d7cc to your computer and use it in GitHub Desktop.
Get a sorted list of user ip from apache log
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