Created
February 11, 2016 20:18
-
-
Save greenbicycle/394c001063daafb2c61d to your computer and use it in GitHub Desktop.
List top 10 ip addresses that are hitting wp-login in access 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
#!/bin/bash | |
# | |
# List the top 10 IP addresses that are hitting wp-login.php, sorted by number of lines in access.log | |
# | |
# @tags: Wordpress, access, apache, ip addresses | |
grep wp-login access.log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment