Hello,

why does the to_syslog_ietf() replace line breaks ('\r','\n') in
message text with space (' ')? [in nx_logdata_to_syslog_rfc5424(),
almost at the end]

In RFC5424, the message text is allowed to contain any octets. In
configuration, you have many ways to cope with line breaks in middle
of message, so why is it "discarded" just here? The IETF standard
allows the line breaks to appear in structured data fields as well -
these are preserved. So, in output, you might get line breaks in
middle of whole event anyway.

For those who do not want to have the line breaks replaced:

<Exec>
    $Severity = $Message;
    $Message = '';
    to_syslog_ietf();
    $raw_event = $raw_event + $Severity;
</Exec>

Milan

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to