1# The client writes a message to a localhost IPv4 UDP socket. 2# The syslogd writes it into a file and through a pipe. 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 syslogd has both any UDP sockets in fstat output. 7 8use strict; 9use warnings; 10use Socket; 11 12our %args = ( 13 client => { 14 connect => { domain => AF_INET, addr => "127.0.0.1", port => 514 }, 15 }, 16 syslogd => { 17 fstat => { 18 qr/ internet dgram udp \*:514$/ => 1, 19 qr/ internet6 dgram udp \*:514$/ => 1, 20 }, 21 options => ["-nu"], 22 }, 23); 24 251; 26