[syslog-ng]Re: bug with UDP messages and rc4 (was: patch for log parsing bugs)

Balazs Scheidler syslog-ng@lists.balabit.hu
Mon, 6 Oct 2003 15:28:24 +0200


On Mon, Oct 06, 2003 at 01:38:16PM +0200, Thomas Morin wrote:
> Hi,
> 
> Quote Balazs Scheidler <bazsi@balabit.hu>:
>  | 
>  | Attached you'll find a patch against syslog-ng 1.6.0rc4 which addresses
>  | some issues wrt log parsing. Please test if the patch fixes your problems.
> 
> I've juste tested the patch, and quickly noticed that received messages are
> written to the log files with no newline appended, they all end up on the
> same line.
> 
> I also tested without the patch applied: the problem does not occur.

I've tested the following config:

source src { udp(port(2000)); internal(); };
 
destination dst { file("logfile"); };
 
log { source(src); destination(dst); };

And I can't seem to reproduce the problem:

bzorp:src$ ./syslog-ng -dvf syslog-ng.conf
binding fd 3, inetaddr: 0.0.0.0, port: 2000
io.c: Preparing fd 3 for reading
syslog-ng version 1.6.0rc4 starting
io.c: Preparing fd 4 for writing
^C 
bzorp:src$ cat logfile
Oct  6 15:27:27 localhost/localhost message1
Oct  6 15:27:28 localhost/localhost message2
Oct  6 15:27:29 localhost/localhost message3


-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1