From 3493aeff3fc407e0d6fbcadf643b691962cce037 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Mon, 30 Jun 2014 19:39:22 +0000 Subject: Search for this string anywhere in line to avoid 'X repeated N times' messages for same line. --- scripts/services/sshd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/services/sshd b/scripts/services/sshd index 1b522e4..1b4131e 100755 --- a/scripts/services/sshd +++ b/scripts/services/sshd @@ -357,7 +357,7 @@ while (defined(my $ThisLine = )) { if ( $Debug >= 5 ) { print STDERR "DEBUG: Found -Keygen complete- line\n"; } - } elsif ( my ($Method,$User,$Host,undef) = ( $ThisLine =~ m/^Failed (\S+) for (\S+) from ([^ ]+) port (\d+)/ ) ) { #openssh + } elsif ( my ($Method,$User,$Host,undef) = ( $ThisLine =~ m/Failed (\S+) for (\S+) from ([^ ]+) port (\d+)/ ) ) { #openssh # depending on log mode, openssh may not report these in connection context. if ( $Debug >= 5 ) { print STDERR "DEBUG: Found -Failed login- line\n"; -- cgit v1.2.3