1# Test with rsyslogd as receiver. 2# The client writes a message to Sys::Syslog native method. 3# The syslogd writes it into a file and through a pipe. 4# The syslogd passes it via UDP to the rsyslogd. 5# The rsyslogd receives the message on its UDP socket. 6# Find the message in client, file, pipe, syslogd, rsyslogd log. 7# Check that the message is in the rsyslogd out file. 8 9use strict; 10use warnings; 11use Socket; 12 13our %args = ( 14 rsyslogd => { 15 listen => { domain => AF_INET, proto => "udp", addr => "127.0.0.1" }, 16 loggrep => { 17 qr/imudp.*: /.get_testlog() => 1, 18 qr/Error/ => 0, 19 }, 20 }, 21); 22 231; 24