I use the following script, it's a somewhat messed up version of a script I had a grander vision for but this one works:
Code:
#!/bin/sh
A="/var/log"
test -f $A/messages && (grep --text ssh $A/messages|grep --text -i invalid)
test -f $A/messages && (grep --text ssh $A/messages|grep --text -i fail)
test -f $A/messages && (grep --text ssh $A/messages|grep --text -i error)
test -f "$A/auth.log" && (grep --text -i fail $A/auth.log*)
test -f "$A/auth.log" && (grep --text -i "Did not receive identification string from" $A/auth.log*)
test -f $A/secure && (grep --text -i fail $A/secure | grep --text -v /home/diltonm)
I'd thought one day I might clean up that output and merge it with a git approach to detect differences and email to them to me automatically, might still do that.