Created
September 22, 2016 23:52
-
-
Save Splat/4918a23f03cc3a0fec412f46af60ab1e to your computer and use it in GitHub Desktop.
Getting some sorted and unique information from the auth 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
egrep -i 'authentication failure;' FILENAME.txt | egrep 'root' | egrep -v ' more ' | awk '{print $14}' | tr '=' ' ' | awk '{print $2}' | sort | uniq -c | sort -nr | more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment