Skip to content

Instantly share code, notes, and snippets.

@Splat
Created September 22, 2016 23:52
Show Gist options
  • Save Splat/4918a23f03cc3a0fec412f46af60ab1e to your computer and use it in GitHub Desktop.
Save Splat/4918a23f03cc3a0fec412f46af60ab1e to your computer and use it in GitHub Desktop.
Getting some sorted and unique information from the auth log
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