[syslog-ng] Syslog-ng is not sending messages line by line
Gergely Nagy
algernon at balabit.hu
Tue Dec 6 11:10:20 CET 2011
Alptugay <alptugay at labristeknoloji.com> writes:
> Hello all,
> I have a python script which prints 30 lines. And my syslog-ng is
> listening this script and writing it's messages to a stream. But the
> application which is listening to the stream recieves all the lines in
> one line. To be more clear my source program is basically like this:
>
> while i<30:
> print "cccc dddd"
> i=i+1
>
> But my application listening to the stream gets a line like this:
> [[u'<13>Dec 6 11:47:11 ddos1 cccc dddd'], [u'<13>Dec 6 11:47:11 ddos1
> cccc dddd'], [u'<13>Dec 6 11:47:11 ddos1 cccc dddd'],
[...]
This looks like a python array to me, where each member is a string, one
for each line your program sent.
I strongly suspect the mistake is in your listening application.
--
|8]
More information about the syslog-ng
mailing list