syslogd => {
options => ["-T", "127.0.0.1:514"],
loggrep => {
- qr/syslogd: tcp logger .* accepted/ => 1,
- qr/syslogd: tcp logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* connection close/ => 1,
}
},
server => {
},
file => {
loggrep => {
- qr/syslogd: tcp logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* connection close/ => 1,
},
},
pipe => { nocheck => 1 },
syslogd => {
options => ["-T", "127.0.0.1:514"],
loggrep => {
- qr/syslogd: tcp logger .* accept/ => 1,
- qr/syslogd: tcp logger .* connection error/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* accept/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: tcp logger .* connection error: $errors/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* connection error: $errors/ => 1,
},
},
pipe => { nocheck => 1 },
qr/ internet6? stream tcp \w+ (127.0.0.1|\[::1\]):514$/ => 1,
},
loggrep => {
- qr/syslogd: tcp logger .* accepted/ => 1,
- qr/syslogd: tcp logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* connection close/ => 1,
},
},
file => {
syslogd => {
options => ["-S", "127.0.0.1:6514"],
loggrep => {
- qr/syslogd: tls logger .* accepted/ => 1,
- qr/syslogd: tls logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection close/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: tls logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection close/ => 1,
},
},
pipe => { nocheck => 1 },
syslogd => {
options => ["-S", "127.0.0.1:6514"],
loggrep => {
- qr/syslogd: tls logger .* accept/ => 1,
- qr/syslogd: tls logger .* connection error/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* accept/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: tls logger .* connection error: read failed: $errors/
- => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection error: /.
+ qr/read failed: $errors/ => 1,
},
},
pipe => { nocheck => 1, },
loggrep => {
qr{Server CAfile fake-ca.crt} => 1,
qr{tls logger .* accepted} => 1,
- qr/syslogd: tls logger .* connection error: /.
+ qr/syslogd\[\d+\]: tls logger .* connection error: /.
qr/handshake failed: error:.*:rsa routines:/.
qr/CRYPTO_internal:/ => 1,
},
server => {
func => sub {
my $self = shift;
- read_message($self, qr/syslogd: tls logger .* connection error/);
+ read_message($self, qr/tls logger .* connection error/);
},
loggrep => {},
},
file => {
loggrep => {
- qr/syslogd: tls logger .* connection error: handshake failed/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection error: /.
+ qr/handshake failed/ => 1,
},
},
pipe => { nocheck => 1, },
syslogd => {
options => ["-S", "127.0.0.1:6514"],
loggrep => {
- qr/syslogd: tls logger .* accepted/ => 1,
- qr/syslogd: tls logger .* connection error/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: tls logger .* connection error: /.
+ qr/syslogd\[\d+\]: tls logger .* connection error: /.
qr/handshake failed: error:.*:SSL routines:/.
qr/ACCEPT_SR_CLNT_HELLO:unknown protocol/ => 1,
},
loggrep => {
qr{Keyfile /etc/ssl/private/localhost.key} => 1,
qr{Certfile /etc/ssl/localhost.crt} => 1,
- qr/syslogd: tls logger .* accepted/ => 1,
- qr/syslogd: tls logger .* connection close/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* connection close/ => 1,
},
},
file => {
get_between2loggrep(),
get_secondlog() => 1,
get_thirdlog() => 0,
- qr/syslogd: start/ => 1,
- qr/syslogd: restart/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
+ qr/syslogd\[\d+\]: restart/ => 1,
get_charlog() => '~88',
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
file => {
get_between2loggrep(),
get_secondlog() => 1,
get_thirdlog() => 1,
- qr/syslogd: start/ => 1,
- qr/syslogd: restart/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
+ qr/syslogd\[\d+\]: restart/ => 1,
get_charlog() => 300,
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
);
get_between2loggrep(),
get_secondlog() => 1,
get_thirdlog() => 0,
- qr/syslogd: start/ => 1,
- qr/syslogd: restart/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
+ qr/syslogd\[\d+\]: restart/ => 1,
get_charlog() => '~88',
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
file => {
get_between2loggrep(),
get_secondlog() => 1,
get_thirdlog() => 1,
- qr/syslogd: start/ => 1,
- qr/syslogd: restart/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
+ qr/syslogd\[\d+\]: restart/ => 1,
get_charlog() => 300,
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
);
${$self->{syslogd}}->loggrep(get_thirdlog(), 20)
or die ref($self), " syslogd did not receive third log";
${$self->{syslogd}}->kill_syslogd('TERM');
- ${$self->{syslogd}}->loggrep("syslogd: exiting", 5)
- or die ref($self), " no 'syslogd: exiting' between logs";
+ ${$self->{syslogd}}->loggrep("syslogd: exited", 5)
+ or die ref($self), " no 'syslogd: exited' between logs";
# syslogd has shut down, read from kernel socket buffer
read_log($self);
},
get_secondlog() => 1,
get_thirdlog() => 0,
get_testgrep() => 0,
- qr/syslogd: start/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
get_charlog() => '~88',
},
},
get_secondlog() => 1,
get_thirdlog() => 1,
get_testgrep() => 0,
- qr/syslogd: start/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
get_charlog() => 300,
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
pipe => { nocheck => 1 },
${$self->{syslogd}}->loggrep(get_thirdlog(), 20)
or die ref($self), " syslogd did not receive third log";
${$self->{syslogd}}->kill_syslogd('TERM');
- ${$self->{syslogd}}->loggrep("syslogd: exiting", 5)
- or die ref($self), " no 'syslogd: exiting' between logs";
+ ${$self->{syslogd}}->loggrep("syslogd: exited", 5)
+ or die ref($self), " no 'syslogd: exited' between logs";
# syslogd has shut down, read from kernel socket buffer
read_log($self);
},
get_secondlog() => 1,
get_thirdlog() => 0,
get_testgrep() => 0,
- qr/syslogd: start/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
get_charlog() => '~88',
},
},
get_secondlog() => 1,
get_thirdlog() => 1,
get_testgrep() => 0,
- qr/syslogd: start/ => 1,
+ qr/syslogd\[\d+\]: start/ => 1,
get_charlog() => 300,
- qr/syslogd: dropped 2[0-3][0-9] messages to remote loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped 2[0-3][0-9] messages to remote loghost/
+ => 1,
},
},
pipe => { nocheck => 1 },
write_message($self, get_thirdlog());
${$self->{server}}->loggrep(get_secondlog(), 5)
or die ref($self), " server did not receive second log";
- ${$self->{syslogd}}->loggrep(qr/syslogd: dropped \d+ messages?/, 5)
+ ${$self->{syslogd}}->loggrep(qr/: dropped \d+ messages? to/, 5)
or die ref($self), " syslogd did not write dropped message";
})},
},
get_secondlog() => 1,
get_thirdlog() => 0,
get_charlog() => '~333',
- qr/syslogd: dropped [67][0-9] messages to loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped [67][0-9] messages to loghost/ => 1,
},
},
file => {
get_secondlog() => 1,
get_thirdlog() => 1,
get_charlog() => 400,
- qr/syslogd: dropped [67][0-9] messages to loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped [67][0-9] messages to loghost/ => 1,
},
},
);
write_message($self, get_thirdlog());
${$self->{server}}->loggrep(get_secondlog(), 5)
or die ref($self), " server did not receive second log";
- ${$self->{syslogd}}->loggrep(qr/syslogd: dropped \d+ messages?/, 5)
+ ${$self->{syslogd}}->loggrep(qr/: dropped \d+ messages? to/, 5)
or die ref($self), " syslogd did not write dropped message";
})},
},
get_secondlog() => 1,
get_thirdlog() => 0,
get_charlog() => '~333',
- qr/syslogd: dropped [67][0-9] messages to loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped [67][0-9] messages to loghost/ => 1,
},
},
file => {
get_secondlog() => 1,
get_thirdlog() => 1,
get_charlog() => 400,
- qr/syslogd: dropped [67][0-9] messages to loghost/ => 1,
+ qr/syslogd\[\d+\]: dropped [67][0-9] messages to loghost/ => 1,
},
},
);
), '-a', 'A'x1000, '-p', 'P'x1000, '-s', 'S'x1000
],
loggrep => {
- qr/address 127.188.42.23/ => 4,
- qr/address ::ffff:127.188.0.0/ => 4,
- qr/port 70000/ => 6,
- qr/socket bind udp/ => 6,
- qr/socket listen tcp/ => 6,
- qr/socket listen tls/ => 2,
- qr/CA file 'CCCC'/ => 2,
- qr/certificate file 'cccc'/ => 2,
- qr/CA file 'KKKK'/ => 2,
- qr/key file 'kkkk'/ => 2,
- qr/socket path too long: AAAA/ => 2,
- qr/socket path too long: PPPP/ => 2,
- qr/socket path too long: SSSS/ => 2,
- qr/log socket failed/ => 2,
+ qr/address 127.188.42.23/ => 2,
+ qr/address ::ffff:127.188.0.0/ => 2,
+ qr/port 70000/ => 3,
+ qr/socket bind udp/ => 3,
+ qr/socket listen tcp/ => 3,
+ qr/socket listen tls/ => 1,
+ qr/CA file 'CCCC'/ => 1,
+ qr/certificate file 'cccc'/ => 1,
+ qr/CA file 'KKKK'/ => 1,
+ qr/key file 'kkkk'/ => 1,
+ qr/socket path too long "AAAA/ => 1,
+ qr/socket path too long "PPPP/ => 1,
+ qr/socket path too long "SSSS/ => 1,
+ qr/log socket PPPP/ => 1,
}
},
);
loggrep => { get_testlog() => 0 },
},
multifile => [
- (map { { loggrep => qr/syslogd: accept deferred/ } } 0..13),
+ (map { { loggrep => qr/syslogd\[\d+\]: accept deferred/ } } 0..13),
(map { { loggrep => { qr/./s => 0 } } } 14..19),
],
file => {
- loggrep => qr/syslogd: accept deferred: Too many open files/,
+ loggrep => qr/syslogd\[\d+\]: accept deferred: Too many open files/,
},
pipe => { nocheck => 1 },
tty => { nocheck => 1 },
syslogd => {
loghost => '@'.('X'x256).':514',
loggrep => {
- qr/syslogd: host too long "\@X+/ => 2,
+ qr/syslogd: host too long "\@X+/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@'.('X'x300),
loggrep => {
- qr/syslogd: loghost too long "\@X+/ => 2,
+ qr/syslogd: loghost too long "\@X+/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@127.0.0.1:'.('X'x32),
loggrep => {
- qr/syslogd: port too long "\@127.0.0.1:X+/ => 2,
+ qr/syslogd: port too long "\@127.0.0.1:X+/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@invalid://127.0.0.1',
loggrep => {
- qr/syslogd: bad protocol "\@invalid:\/\/127.0.0.1"/ => 2,
+ qr/syslogd: bad protocol "\@invalid:\/\/127.0.0.1"/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@udp4://[::1]',
loggrep => {
- qr/syslogd: bad hostname "\@udp4:\/\/\[::1\]"/ => 2,
+ qr/syslogd: bad hostname "\@udp4:\/\/\[::1\]"/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@udp4://127.0.0.1',
loggrep => {
- qr/syslogd: no udp4 "\@udp4:\/\/127.0.0.1/ => 2,
+ qr/syslogd: no udp4 "\@udp4:\/\/127.0.0.1/ => 1,
get_testgrep() => 1,
},
options => ["-6"],
syslogd => {
loghost => '@udp6://127.0.0.1',
loggrep => {
- qr/syslogd: bad hostname "\@udp6:\/\/127.0.0.1"/ => 2,
+ qr/syslogd: bad hostname "\@udp6:\/\/127.0.0.1"/ => 1,
get_testgrep() => 1,
},
},
syslogd => {
loghost => '@udp6://[::1]',
loggrep => {
- qr/syslogd: no udp6 "\@udp6:\/\/\[::1\]/ => 2,
+ qr/syslogd: no udp6 "\@udp6:\/\/\[::1\]/ => 1,
get_testgrep() => 1,
},
options => ["-4"],
options => ["-T", "127.0.0.1:514"],
loggrep => {
get_testgrep() => 1,
- qr/syslogd: tcp logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tcp logger .* accepted/ => 1,
},
},
);
options => ["-S", "127.0.0.1"],
loggrep => {
get_testgrep() => 1,
- qr/syslogd: tls logger .* accepted/ => 1,
+ qr/syslogd\[\d+\]: tls logger .* accepted/ => 1,
},
},
);
loggrep => {
qr/Logging to FORWTCP \@tcp:\/\/127.0.0.1:\d+/ => '>=4',
get_testgrep() => 1,
- qr/syslogd: loghost .* connection close/ => 2,
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: loghost .* connection close/ => 1,
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
},
},
);
loggrep => {
qr/Logging to FORWTCP \@tcp:\/\/127.0.0.1:\d+/ => '>=4',
get_testgrep() => 1,
- qr/syslogd: loghost .* connection error/ => 2,
+ qr/syslogd\[\d+\]: loghost .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: loghost .* connection error: $errors/ => 1,
+ qr/syslogd\[\d+\]: loghost .* connection error: $errors/ => 1,
},
},
);
loghost => '@tcp://127.0.0.1:$connectport',
loggrep => {
qr/Logging to FORWTCP \@tcp:\/\/127.0.0.1:\d+/ => '>=6',
- qr/syslogd: (connect .*|.*connection error): $errors/ => '>=2',
+ qr/syslogd\[\d+\]: (connect .*|.*connection error): $errors/ => 1,
get_between2loggrep(),
},
},
})},
loggrep => {
qr/Accepted/ => 2,
- qr/syslogd: loghost .* connection close/ => 1,
- qr/syslogd: (connect .*|.*connection error): $errors/ => 1,
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
+ qr/syslogd\[\d+\]: (connect .*|.*connection error): $errors/ => 1,
get_between2loggrep(),
},
},
file => {
loggrep => {
- qr/syslogd: (connect .*|.*connection error): $errors/ => '>=1',
+ qr/syslogd\[\d+\]: (connect .*|.*connection error): $errors/ => 1,
get_between2loggrep(),
},
},
loggrep => {
qr/ClientCertfile client.crt/ => 1,
qr/ClientKeyfile client.key/ => 1,
- qr/syslogd: loghost .* connection error: /.
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
qr/handshake failed: error:.*:SSL routines:/.
- qr/CONNECT_CR_FINISHED:tlsv1 alert decrypt error/ => 2,
+ qr/CONNECT_CR_FINISHED:tlsv1 alert decrypt error/ => 1,
get_testgrep() => 1,
},
},
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=4',
get_testgrep() => 1,
- qr/syslogd: loghost .* connection close/ => '>=2',
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: loghost .* connection close/ => 1,
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
},
},
);
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=4',
get_testgrep() => 1,
- qr/syslogd: loghost .* connection error/ => 2,
+ qr/syslogd\[\d+\]: loghost .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: loghost .* connection error: read failed: $errors/ => 1,
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
+ qr/read failed: $errors/ => 1,
},
},
);
loghost => '@tls://127.0.0.1:$connectport',
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=6',
- qr/syslogd: (connect .*|.* connection error: handshake failed): /.
- $errors => '>=2',
+ qr/syslogd\[\d+\]: /.
+ qr/(connect .*|.* connection error: handshake failed): /.
+ $errors => 1,
get_between2loggrep(),
},
},
})},
loggrep => {
qr/Accepted/ => 2,
- qr/syslogd: loghost .* connection close/ => 1,
- qr/syslogd: (connect .*|.* connection error: handshake failed): /.
+ qr/syslogd\[\d+\]: loghost .* connection close/ => 1,
+ qr/syslogd\[\d+\]: /.
+ qr/(connect .*|.* connection error: handshake failed): /.
$errors => 1,
get_between2loggrep(),
},
},
file => {
loggrep => {
- qr/syslogd: (connect .*|.* connection error: handshake failed): /.
- $errors => '>=1',
+ qr/syslogd\[\d+\]: /.
+ qr/(connect .*|.* connection error: handshake failed): /.
+ $errors => 1,
get_between2loggrep(),
},
},
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=4',
get_testgrep() => 1,
- qr/syslogd: loghost .* connection error/ => 2,
+ qr/syslogd\[\d+\]: loghost .* connection error/ => 1,
},
},
server => {
},
file => {
loggrep => {
- qr/syslogd: loghost .* connection error: /.
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
qr/handshake failed: error:.*:SSL routines:/.
qr/CONNECT_CR_SRVR_HELLO:wrong version number/ => 1,
},
func => sub {
my $self = shift;
write_message($self, get_testlog());
- ${$self->{server}}->loggrep("syslogd: exiting", 8)
- or die ref($self), " no 'syslogd: exiting' server log";
+ ${$self->{server}}->loggrep(qr/: exiting on signal/, 8)
+ or die ref($self), " no ': exiting on signal' server log";
},
},
syslogd => {
qr/syslogd PSIG SIGTERM caught handler/ => 1,
qr/syslogd RET execve 0/ => 2,
},
- loggrep => qr/\[unpriv\] syslogd child about to exit/,
+ loggrep => {
+ qr/syslogd: exited/ => 1,
+ },
},
server => {
func => sub {
my $self = shift;
read_message($self, get_testgrep());
${$self->{syslogd}}->kill_syslogd('TERM');
- read_message($self, qr/syslogd: exiting/);
+ read_message($self, qr/: exiting on signal/);
},
- down => qr/syslogd: exiting on signal 15/,
+ down => qr/syslogd\[\d+\]: exiting on signal 15/,
},
);
write_message($self, get_thirdlog());
${$self->{server}}->loggrep("Accepted", 5, 2)
or die ref($self), " server did not accept second connection";
- ${$self->{syslogd}}->loggrep(qr/syslogd: dropped \d+ messages?/, 5)
+ ${$self->{syslogd}}->loggrep(qr/: dropped \d+ messages? to/, 5)
or die ref($self), " syslogd did not write dropped message";
})},
},
loggrep => {
qr{CAfile /etc/ssl/cert.pem} => 1,
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: loghost .* connection error: /.
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
qr/certificate verification failed: /.
- qr/self signed certificate in certificate chain/ => 2,
+ qr/self signed certificate in certificate chain/ => 1,
get_testgrep() => 1,
},
cacrt => "default",
loggrep => {
qr/CAfile empty/ => 1,
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: tls_connect_socket .*: /.
- qr/ssl verify memory setup failure/ => 2,
+ qr/syslogd\[\d+\]: tls_connect_socket .*: /.
+ qr/ssl verify memory setup failure/ => 1,
get_testgrep() => 1,
},
cacrt => "empty",
loggrep => {
qr/CAfile fake-ca.crt/ => 1,
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: loghost .* connection error: /.
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
qr/certificate verification failed: /.
- qr/certificate signature failure/ => 2,
+ qr/certificate signature failure/ => 1,
get_testgrep() => 1,
},
cacrt => "fake-ca.crt",
syslogd => {
loghost => '@tls://localhost:$connectport',
loggrep => {
- qr/syslogd: Load client TLS CA failed/ => 2,
+ qr/syslogd: load client TLS CA: failed to open CA file/ => 1,
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: tls_connect_socket .*: /.
- qr/ssl verify memory setup failure/ => 2,
+ qr/syslogd\[\d+\]: tls_connect_socket .*: /.
+ qr/ssl verify memory setup failure/ => 1,
get_testgrep() => 1,
},
cacrt => "noexist",
loggrep => {
qr/CAfile toobig/ => 1,
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: tls_connect_socket .*: /.
- qr/ssl verify memory setup failure/ => 2,
+ qr/syslogd\[\d+\]: tls_connect_socket .*: /.
+ qr/ssl verify memory setup failure/ => 1,
get_testgrep() => 1,
},
cacrt => "toobig",
loggrep => {
qr{Keyfile $key} => 1,
qr{Certfile $cert} => 1,
- qr{syslogd: tls_configure server} => 2,
+ qr{tls_configure server: failed to load certificate} => 1,
},
},
server => {
loggrep => {
qr{Keyfile /etc/ssl/private/127.0.0.1.key} => 1,
qr{Certfile } => 0,
- qr{syslogd: Load server TLS key failed} => 2,
- qr{syslogd: Load server TLS cert failed} => 2,
- qr{syslogd: tls_configure server} => 2,
+ qr{load server TLS key: failed to open key file} => 1,
+ qr{load server TLS cert: failed to open certificate file} => 1,
+ qr{tls_configure server: private/public key mismatch} => 1,
},
},
server => {
loghost => '@tls://localhost:$connectport',
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/localhost:\d+/ => '>=4',
- qr/syslogd: loghost .* connection error: /.
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
qr/handshake failed: error:.*:SSL routines:/.
- qr/CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure/ => 2,
+ qr/CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure/ => 1,
get_testgrep() => 1,
},
cacrt => "ca.crt",
loghost => '@tls://127.0.0.1:$connectport',
loggrep => {
qr/Logging to FORWTLS \@tls:\/\/127.0.0.1:\d+/ => '>=4',
- qr/syslogd: loghost .* connection error: /.
- qr/name `127.0.0.1' not present in server/ => '>=1',
+ qr/syslogd\[\d+\]: loghost .* connection error: /.
+ qr/name `127.0.0.1' not present in server/ => 1,
get_testgrep() => 1,
},
cacrt => "ca.crt",
loggrep => {
qr{Keyfile $key} => 1,
qr{Certfile $cert} => 1,
- qr{syslogd: tls_configure server} => 2,
+ qr{tls_configure server: failed to read private key} => 1,
},
},
server => {
loggrep => {
qr{Keyfile } => 0,
qr{Certfile } => 0,
- qr{syslogd: Load server TLS key failed} => 4,
- qr{syslogd: tls_configure server} => 2,
+ qr{load server TLS key: failed to open key file} => 2,
+ qr{tls_configure server: private/public key mismatch} => 1,
},
},
server => {