152a1898bSbluhm# The client writes a message to Sys::Syslog native method. 252a1898bSbluhm# The syslogd writes into multiple files depending on program and hostname. 352a1898bSbluhm# The syslogd writes it into a file and through a pipe. 452a1898bSbluhm# The syslogd passes it via UDP to the loghost. 552a1898bSbluhm# The server receives the message on its UDP socket. 652a1898bSbluhm# Find the message in client, file, pipe, syslogd, server log. 752a1898bSbluhm# Check that the quick message appears only in in log files. 852a1898bSbluhm 952a1898bSbluhmuse strict; 1052a1898bSbluhmuse warnings; 1152a1898bSbluhm 1252a1898bSbluhmour %args = ( 1352a1898bSbluhm syslogd => { 14*a17617cfSbluhm conf => <<'EOF', 1552a1898bSbluhm!nonexist 1652a1898bSbluhm+nonexist 1752a1898bSbluhm*.* $objdir/file-0.log 1852a1898bSbluhm!!syslogd-regress 1952a1898bSbluhm*.* $objdir/file-1.log 20bb7ea376Sbluhm+$host 2152a1898bSbluhm*.* $objdir/file-2.log 2252a1898bSbluhm*.* $objdir/file-3.log 2352a1898bSbluhm!* 2452a1898bSbluhm+* 2552a1898bSbluhm*.* $objdir/file-4.log 2652a1898bSbluhmEOF 2752a1898bSbluhm }, 2852a1898bSbluhm multifile => [ 29bb7ea376Sbluhm { loggrep => { get_testgrep() => 0 } }, 30bb7ea376Sbluhm { loggrep => { get_testgrep() => 0 } }, 31bb7ea376Sbluhm { loggrep => { get_testgrep() => 1 } }, 32bb7ea376Sbluhm { loggrep => { get_testgrep() => 0 } }, 33bb7ea376Sbluhm { loggrep => { get_testgrep() => 0 } }, 3452a1898bSbluhm ], 3552a1898bSbluhm); 3652a1898bSbluhm 3752a1898bSbluhm1; 38