Created
March 18, 2019 12:39
-
-
Save leonlaser/10515130aee9daf095c473b1eaa12896 to your computer and use it in GitHub Desktop.
[Count IPs from apache access log] #apache #accesslog #log #ip #bash #tail #sort #uniq
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
#!/bin/bash | |
tail -n10000 $logfile | cut -f3 -d' ' | sort | uniq -c | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment