<p dir="ltr">It wont lose messages. Despite its name SOCK_DGRAM sockets in the PF_UNIX domain are not lossy. Might even be described in unix(7).</p>
<div class="gmail_quote">On May 8, 2015 4:21 PM, "ZeroUno" <<a href="mailto:zerozerounouno@gmail.com">zerozerounouno@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'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'd like to be sure my configuration is safe.<br>
<br>
I'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 ("/proc/kmsg" program_override("kernel: "));<br>
unix-dgram ("/dev/log" 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>
<font color="#888888"><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>
</font></blockquote></div>