[syslog-ng] UDP problems with 1.1.14

Scott Dellinger dellinsd@jmu.edu
Tue, 11 May 1999 15:24:16 -0400 (EDT)


Through further experimentation, I have found out more information on my
UDP problem.  In short: syslog-ng, or more accurately, libol
(do_read_line() in read_line.c) requires all messages to end in '\n'. This
is fine for messages sent from a Linux box, but not for messages sent from
some other systems (HP-UX, and probably others).  If I remember correctly,
the standard BSD implementation doesn't require a linefeed character, so
it's not a good idea to depend on it, and the standard Linux sysklogd not
only doesn't require a LF, but actually goes and converts them to spaces. 
Given the current implementation, the easiest thing to do might be to
ensure that messages received via UDP end in a linefeed, appending one if
necessary.  While not technically the "best" way to fix this, it's
certainly the easiest.


-- 
Scott Dellinger
Systems Administrator,
JMU Technical Services
dellinsd@jmu.edu