<div dir="auto"><div>You won't lose logs, the system source is just a wrapper around systemd-journal()<br><br>It might be possible to accept default-facility () at the system() source level.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 26, 2020, 15:43 Alexandre Santos <<a href="mailto:alexandre.rosas.santos@gmail.com">alexandre.rosas.santos@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi.</div><div><br></div><div>I am using syslog-ng 3.19 in a Linux system.</div><div><br></div><div>My sources configuration is:</div><div></div><div>source s_src {<br> system();<br> internal();<br>};</div><div><br></div><div>I would like to stack traces to end up in another facility than local0, which is what is happening with the configuration above. This happens because local0 is default facility when
SYSLOG_FACILITY entry of journald is not defined.</div><div><br></div><div></div><div>So I changed my sources configuration to:</div><div>source s_src {<br> internal();<br> systemd-journal(default-facility(local1));<br>};</div><div><br></div><div>And now the stacktraces are going to local1 facility.</div><div><br></div><div><b>Is there any difference between system() and systemd-journal() when using Linux? I am going to lose any logs?</b></div><div><b></b></div><div>Thanks in advance,</div><div>Alex</div><div><br></div><div><i>BTW:</i></div><div><i>source s_src {<br> system(default-facility(local1));<br> internal();<br>};</i></div><div><i>Does not gives any error, but it does not have the desired effect.</i></div><div><br></div></div>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div></div></div>