<div dir="ltr">+ Systemd-dev<div><br></div><div>Hi,</div><div><br></div><div>Does journal ignore the forwarding of logs ending with newline(\n) to rsyslog? In my system there are some logs send directly via sd_journal_send() API and ending with newline. </div><div>These logs are present in journal, but not in /var/log/messages. </div><div><br></div><div>Rainer confirmed that rsyslog does accept logs with newline as seen in mail below. So is this the case where journal not forwarding the logs due to newline?</div><div><br></div><div>Thanks,</div><div>RV</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 15, 2017 at 1:27 PM, Rainer Gerhards <span dir="ltr"><<a href="mailto:rgerhards@hq.adiscon.com" target="_blank">rgerhards@hq.adiscon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I assume that journal does not forward them. A debug log might help to validate this assumption. Rsyslog does not reject logs with newlines albeit they usually cause huge problems in many subsystems and thus it is strongly recommended to not use them.<div dir="auto"><div dir="auto"><br></div><div dir="auto">Rainer<br><br><div data-smartmail="gmail_signature" dir="auto">Sent from phone, thus brief. </div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">Am 15.06.2017 05:00 schrieb "Renjith Vijayan via rsyslog" <<a href="mailto:rsyslog@lists.adiscon.com" target="_blank">rsyslog@lists.adiscon.com</a>>:<br type="attribution"></div></div><blockquote class="m_-7640982664777981400quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br>
<br>
I am working on a system where both systemd-journal & rsyslog(7.6.1) are<br>
there. Systemd-journal is configured to forward logs to rsyslog routinely.<br>
I have some logs which ends with newlines & that are directly sent to<br>
journal using sd_journal_send() API's.<br>
<br>
I see that although these logs are present in journal, it's not present in<br>
/var/log/messages which is populated by rsyslog. Is rsyslog rejecting these<br>
logs due to the ending newline?<br>
<br>
Further, based on some search results on this topic, I tried adding the<br>
following lines to rsyslog.conf, but this didn't help either.<br>
<br>
# global directives<br>
$EscapeControlCharactersOnRece<wbr>ive off<br>
$EscapeControlCharactersCStyle off<br>
$ActionFileDefaultTemplate RSYSLOG_SysklogdFileFormat<br>
$SpaceLFOnReceive on<br>
$DropTrailingLFOnReception off<br>
<br>
Could you please let me know how can I make rsyslog to accept these logs<br>
ending with newline?<br>
<br>
Thanks,<br>
RV<br></div></div>
______________________________<wbr>_________________<br>
rsyslog mailing list<br>
<a href="http://lists.adiscon.net/mailman/listinfo/rsyslog" rel="noreferrer" target="_blank">http://lists.adiscon.net/mailm<wbr>an/listinfo/rsyslog</a><br>
<a href="http://www.rsyslog.com/professional-services/" rel="noreferrer" target="_blank">http://www.rsyslog.com/profess<wbr>ional-services/</a><br>
What's up with rsyslog? Follow <a href="https://twitter.com/rgerhards" rel="noreferrer" target="_blank">https://twitter.com/rgerhards</a><br>
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.<br>
</blockquote></div><br></div>
</blockquote></div><br></div>