[issue28404] Logging SyslogHandler not appending '\n' to the end

José Manuel report at bugs.python.org
Mon Oct 10 10:43:26 EDT 2016


José Manuel added the comment:

After reading the RFC5424 it seems that there is no such "new line message delimiter":

--------------------------------
4.3.1.  Message Length

   The message length is the octet count of the SYSLOG-MSG in the
   SYSLOG-FRAME.  A transport receiver MUST use the message length to delimit a syslog message
--------------------------------

So I think it must be a Fluentd error. This is what caused my confusion:

>From in_syslog.rb (https://github.com/athenahealth/fluent-plugin-newsyslog/blob/master/lib/fluent/plugin/in_newsyslog.rb):

--------------------------------
# syslog family add "\n" to each message and this seems only way to split messages in tcp stream
Coolio::TCPServer.new(@bind, @port, SocketUtil::TcpHandler, log, "\n", callback)
--------------------------------

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28404>
_______________________________________


More information about the Python-bugs-list mailing list