http://qs321.pair.com?node_id=1129877


in reply to Re: Sys::Syslog skips the first event
in thread Sys::Syslog skips the first event

Wireshark suggests that the message is being sent and received. However, RFC3164 suggests that there's no hard, normative standard for sending events over TCP: some applications end events with LF, some with CRLF, and some use byte-counting. Sys::Syslog likes LF+NUL and gives you a way to suppress the null, but the option to suppress the LF doesn't work; I've raised a ticket for that and another for the RFC-violating date format. All in all, with no standards and without the ability to suppress the LF experimentally, it's not surprising that the syslog collectors we've tried don't really like the events that Sys::Syslog emits. :-(
  • Comment on Re^2: Sys::Syslog skips the first event

Replies are listed 'Best First'.
Re^3: Sys::Syslog skips the first event
by FreeBeerReekingMonk (Deacon) on Jun 10, 2015 at 19:13 UTC

    That sounds like its not gonna be fixed soon. Why not switch to rsyslog?

      Unfortunately, rsyslog is one of the syslog collectors that don't like the output of Sys::Syslog.

      In the end, we've decided to abandon Sys::Syslog and write some custom code that implements as much of RFC5424 as we need. We hope for better success with that, partly because we'll have more control over the code, and partly because we'll be implementing the current RFC, rather than RFC3164, which is what Sys::Syslog implements, and which has been obsolete for six years.

      To everyone on this thread: many thanks for your help and suggestions.