1# The client writes a message to Sys::Syslog UDP method.
2# The syslogd writes it into a file and through a pipe without dns.
3# The syslogd passes it via UDP to the loghost.
4# The server receives the message on its UDP socket.
5# Find the message in client, file, pipe, syslogd, server log.
6# Check that the file log contains the 127.0.0.1 address.
7
8use strict;
9use warnings;
10
11our %args = (
12    client => {
13	logsock => { type => "udp", host => "127.0.0.1", port => 514 },
14    },
15    syslogd => {
16	options => ["-un"],
17	loggrep => get_testlog(),
18    },
19    server => {
20	loggrep => get_testlog(),
21    },
22    pipe => {
23	loggrep => get_testlog(),
24    },
25    tty => {
26	loggrep => get_testlog(),
27    },
28    file => {
29	# Sys::Syslog UDP is broken, it appends a \n\0.
30	loggrep => qr/ 127.0.0.1 syslogd-regress\[\d+\]: /.get_testlog().qr/ $/,
31    },
32);
33
341;
35