[syslog-ng] Syslog-ng is not sending messages line by line

Alptugay alptugay at labristeknoloji.com
Tue Dec 6 11:05:22 CET 2011


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'], [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'], [u'<13>Dec  6 11:47:11 ddos1 
cccc dddd'], [u'<13>Dec  6 11:47:1
1 ddos1 cccc dddd'], [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'], [u'<13>Dec  6 11:47:11 ddos1 c
ccc dddd'], [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'], 
[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'], [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'], [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'], [u'<13>Dec  6 1
1: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'], [u'<13>Dec  6 11:47:11 ddos1 
cccc dddd'], [u'<13>Dec  6 11:47:11 d
dos1 cccc dddd'], [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'], 
[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'], [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'], [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'], [u'<13>De
c  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'], [u'<13>Dec  6 11:47:11 
ddos1 cccc dddd'], [u'<13>Dec  6 11:4
7:11 ddos1 cccc dddd'], [u'<13>Dec  6 11:47:11 ddos1 cccc dddd'], 
[u'<13>Dec  6 11:47:11 ddos1 cccc dddd'] .... etc

But it should recieve one line from the stream for one print command of 
the source program.

Btw I am using freeBSD
 _____________________________________________________________________

 Register now! Use this rare opportunity!

 http://partners.labris.eu


More information about the syslog-ng mailing list