<p dir="ltr">It wont lose messages. Despite its name SOCK_DGRAM sockets in the PF_UNIX domain are not lossy. It is even described in unix(7).</p>
<p dir="ltr"><a href="http://linux.die.net/man/7/unix">http://linux.die.net/man/7/unix</a></p>
<div class="gmail_quot&lt;blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I&#39;ve read some old discussions about unix-dgram vs unix-stream for<br>
getting the /dev/log syslog stream on Linux (e.g.<br>
<a href="https://bugs.archlinux.org/task/22153" target="_blank">https://bugs.archlinux.org/task/22153</a>), but some years have passed by<br>
and I&#39;d like to be sure my configuration is safe.<br>
<br>
I&#39;m using syslog-ng 3.2.5 on a system composed of different Linux<br>
(RHEL6) machines. I cannot install a different version.<br>
There is a central log facility, but each machine collects and sends its<br>
logs using the following source config:<br>
<br>
source src {<br>
        file (&quot;/proc/kmsg&quot; program_override(&quot;kernel: &quot;));<br>
        unix-dgram (&quot;/dev/log&quot; flags(no-multi-line));<br>
        internal();<br>
};<br>
<br>
It was originally using unix-stream(), but I need to change it to<br>
unix-dgram() because some custom applications are sending multiline<br>
messages which need to be converted into single line, and unix-stream()<br>
does not support this flag.<br>
<br>
Can I be sure that no messages risk to be lost due to this change?<br>
This is a rather critical application.<br>
<br>
Thank you very much.<br>
<br>
--<br>
01<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</div>