[syslog-ng] [Bug 200] local logging does not work

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Thu Oct 11 12:27:11 CEST 2012


https://bugzilla.balabit.com/show_bug.cgi?id=200


Gergely Nagy <algernon at balabit.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




--- Comment #3 from Gergely Nagy <algernon at balabit.hu>  2012-10-11 12:27:11 ---
Right. This was a bit of a pain to figure out, as I had to understand Bazsi's recent logproto/logtransport rework, but the problem turned out to be really
simple once understood: prior to the rework, the text transport was smart enough to recognise when it is in dgram-mode, and didn't expect a newline termination
in that case. With the rework, the text transport was split, and a dgram transport was born.

However, afunix was not modified, and it always set a text transport, even when operating on a unix-dgram. BUT /dev/log messages are not newline terminated, so
they were accumulating in an internal buffer, waiting for the buffer to fill up.

The obvious fix is to teach afunix to do the right thing, and set dgram transport as appropriate. I'll send a patch soon.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list