Pryzby, Justin
2007-May-06 17:46 UTC
[Logcheck-devel] Bug#422525: logcheck: log-summary-ssh s/Illegal/Invalid/ user match
Package: logcheck Version: 1.2.47 Tags: patch --- ./log-summary-ssh 2005-12-31 06:49:05.000000000 -0500 +++ /home/jpryzby/log-summary-ssh 2007-05-06 13:45:54.000000000 -0400 @@ -32,7 +32,7 @@ my $invf = 0; # flag values while (<>) { - if (m/^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: Illegal user (.*) from (.*)$/) { + if (m/^\w{3} [ :0-9]{11} [._[:alnum:]-]+ sshd\[[0-9]+\]: (?:Illegal|Invalid) user (.*) from (.*)$/) { my $ip = $2; chomp $ip; $h{$ip} ++;