This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author elelement
Recipients elelement
Date 2016-10-10.12:14:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476101662.48.0.994997122347.issue28404@psf.upfronthosting.co.za>
In-reply-to
Content
I'm using SyslogHandler from logging.handlers to send syslog messages to a Fluentd input (https://github.com/fluent/fluentd/blob/master/lib/fluent/plugin/in_syslog.rb), both in TCP and UDP. UDP works fine, but TCP does not work. 

The "problem" is that the handler is not ending messages with a new line '\n' character (I realized that using tcpdump). I've temporarily added this to line 855 of handlers.py: 
            msg = prio + msg + '\n' 
And now is working. 

Now I'm confused because maybe this is not an issue but a problem of Fluentd. For the time, I will create a new class extending SyslogHandler and override the emit function.

Thank you for your time.
History
Date User Action Args
2016-10-10 12:14:22elelementsetrecipients: + elelement
2016-10-10 12:14:22elelementsetmessageid: <1476101662.48.0.994997122347.issue28404@psf.upfronthosting.co.za>
2016-10-10 12:14:22elelementlinkissue28404 messages
2016-10-10 12:14:22elelementcreate