<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI Symbol";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
        {mso-style-name:x_xmsonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.xxmsochpdefault, li.xxmsochpdefault, div.xxmsochpdefault
        {mso-style-name:x_xmsochpdefault;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";}
p.xmsochpdefault, li.xmsochpdefault, div.xmsochpdefault
        {mso-style-name:x_msochpdefault;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.xmsohyperlink
        {mso-style-name:x_msohyperlink;
        color:blue;
        text-decoration:underline;}
span.xmsohyperlinkfollowed
        {mso-style-name:x_msohyperlinkfollowed;
        color:purple;
        text-decoration:underline;}
span.xxmsohyperlink
        {mso-style-name:x_xmsohyperlink;
        color:blue;
        text-decoration:underline;}
span.xxmsohyperlinkfollowed
        {mso-style-name:x_xmsohyperlinkfollowed;
        color:purple;
        text-decoration:underline;}
span.xxemailstyle17
        {mso-style-name:x_xemailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.xemailstyle23
        {mso-style-name:x_emailstyle23;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:326714881;
        mso-list-template-ids:-869360706;}
@list l1
        {mso-list-id:335575179;
        mso-list-template-ids:-2136552168;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Attila,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for that reminder that UDP is not reliable. As a quick test I added a line to the /etc/rsyslog.conf file the server that has the missing messages
 and sent it to my test syslog-ng server that sees much less traffic. Now with the message traffic going to both my normal centralized syslog-ng server and my basically idle test syslog-ng server, I can see a difference. I seem to be dropping quite a few messages.
 Not just the one message that was found to be missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What are the ramifications of changing my "s_net" source from UPD to TCP? Do I need to reconfigure the thousands of hosts that are sending to my centralized
 syslog server to send using TCP. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Can I configure both transports (UDP and TCP) on the same “s_net” source? If this were possible, this would seem to be an easy way to continue to support UDP
 and transition over time to the TCP transport.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="xxmsonormal">Bryan Klimek<o:p></o:p></p>
<p class="xxmsonormal">Mayo Clinic<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> syslog-ng [mailto:syslog-ng-bounces@lists.balabit.hu]
<b>On Behalf Of </b>Attila Szakacs (aszakacs)<br>
<b>Sent:</b> Thursday, June 27, 2019 3:25 AM<br>
<b>To:</b> 'syslog-ng@lists.balabit.hu'<br>
<b>Subject:</b> [EXTERNAL] Re: [syslog-ng] Missing messages<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">Hi Bryan,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">If I understand correctly, the message, which got lost, was expected to come from the "s_net" source.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">If that is the case, it is normal to lose logs there, as UDP does not provide reliable data transmission.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">Logging services have different solutions to this problem, syslog-ng Premium Edition has Advanced Log Transfer Protocol (ALTP).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">You can read more about it here: <a href="https://support.oneidentity.com/technical-documents/syslog-ng-premium-edition/7.0.14/administration-guide/58#TOPIC-1187363">https://support.oneidentity.com/technical-documents/syslog-ng-premium-edition/7.0.14/administration-guide/58#TOPIC-1187363</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">If I misunderstood the problem, please correct me.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">Have a nice day!
</span><span style="font-family:"Segoe UI Symbol","sans-serif";color:black">🙂</span><span style="font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">Attila<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of
 Klimek, Bryan J. <bklimek@mayo.edu><br>
<b>Sent:</b> Wednesday, June 26, 2019 3:50 PM<br>
<b>To:</b> 'syslog-ng@lists.balabit.hu'<br>
<b>Subject:</b> Re: [syslog-ng] Missing messages</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#FFEB9C"><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#9C6500">CAUTION:</span></b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black"> This email
 originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Attila,</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Thank you for your response. I enabled the "stats-level(1)" so I can see the statistics. But the “dropped” counters are all zero.
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">I’ve attached the syslog-ng.conf file for review.</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">This syslog-ng instance receives syslog from 2000+ hosts. We create a separate file for every server for every day. We also fork the data to one consolidated file (all traffic
 from all hosts into 1 file). We also fork a 3<sup>rd</sup> copy to our SEIM (Security Event Information Management) solution.</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">The missing message does not appear in the individual host file, nor does it appear in the consolidate file of all hosts. I’ve never bothered to check with our SEIM people to
 see if they are getting the missing message. I just assume they are not.</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="xmsonormal"><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:navy">Bryan Klimek</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue">
<br>
</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">Phone: 507-284-9396</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue">
<br>
</span><span lang="PT-BR" style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:black">E-mail:
<a href="mailto:klimek.bryan@mayo.edu">klimek.bryan@mayo.edu</a></span><span lang="PT-BR" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue">
</span><o:p></o:p></p>
</div>
<p class="xmsonormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="xmsonormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> syslog-ng [mailto:syslog-ng-bounces@lists.balabit.hu]
<b>On Behalf Of </b>Attila Szakacs (aszakacs)<br>
<b>Sent:</b> Monday, June 24, 2019 8:40 AM<br>
<b>To:</b> 'syslog-ng@lists.balabit.hu'<br>
<b>Subject:</b> [EXTERNAL] Re: [syslog-ng] Missing messages</span><o:p></o:p></p>
</div>
</div>
<p class="xmsonormal"> <o:p></o:p></p>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Hi Bryan,</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Thank you for using the syslog-ng mailing list!
</span><span style="font-family:"Segoe UI Symbol","sans-serif";color:black">🙂</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Message drop could happen for several reasons. I couple reasons, that suddenly comes up to me:</span><o:p></o:p></p>
</div>
<div>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoNormal" style="color:black;mso-list:l0 level1 lfo1"><span style="font-family:"Calibri","sans-serif"">The log path has a filter or parser, which does not match for the message.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l0 level1 lfo1"><span style="font-family:"Calibri","sans-serif"">The log path has a source, which has a built-in parser (syslog for example), and the message does not match the protocol.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l0 level1 lfo1"><span style="font-family:"Calibri","sans-serif"">Flow-control is not enabled and the destination is not alive for a longer period of time.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l0 level1 lfo1"><span style="font-family:"Calibri","sans-serif"">Flow-control is configured incorrectly.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l0 level1 lfo1"><span style="font-family:"Calibri","sans-serif"">...</span><o:p></o:p></li></ol>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Saying so, it is hard to come up with one general way to investigate this.</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">However, I can give you some tips:</span><o:p></o:p></p>
</div>
<div>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoNormal" style="color:black;mso-list:l1 level1 lfo2"><span style="font-family:"Calibri","sans-serif"">You can set "stats-level(1)" in the global options and use "sbin/syslog-ng-ctl stats", then look for the "dropped" counters.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l1 level1 lfo2"><span style="font-family:"Calibri","sans-serif"">You can start syslog-ng in debug mode (./sbin/syslog-ng -Fedtv) and look for the following logs: "Destination queue full, dropping message;" or
 "UNMATCHED".</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l1 level1 lfo2"><span style="font-family:"Calibri","sans-serif"">Check if flow-control is enabled and configured properly.</span><o:p></o:p></li><li class="MsoNormal" style="color:black;mso-list:l1 level1 lfo2"><span style="font-family:"Calibri","sans-serif"">If you do not want to use flow-control, you can use disk-queue alternatively.</span><o:p></o:p></li></ol>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">If you could share some parts of your setup and config, where the problem happens, we could give you more insight.</span><o:p></o:p></p>
</div>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Best regards,</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-family:"Calibri","sans-serif";color:black">Attila</span><o:p></o:p></p>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="3" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="xmsonormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of
 Klimek, Bryan J. <bklimek@mayo.edu><br>
<b>Sent:</b> Monday, June 24, 2019 3:05 PM<br>
<b>To:</b> 'syslog-ng@lists.balabit.hu'<br>
<b>Subject:</b> [syslog-ng] Missing messages</span> <o:p></o:p></p>
<div>
<p class="xmsonormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="xmsonormal" style="line-height:12.0pt;background:#FFEB9C"><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#9C6500">CAUTION:</span></b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:black"> This email
 originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.</span><o:p></o:p></p>
</div>
<p class="xmsonormal"> <o:p></o:p></p>
<div>
<div>
<p class="xxmsonormal">First time poster, so be gentle.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">We run syslog-ng in our environment as a centralized syslog manager for the archiving of syslog data. We have over 2000+ Unix/Linux systems sending their syslog data with a daily ingest rate of about 10GB per day.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">It was recently pointed out to me that one particular message from one specific host is not getting persisted to the files on our syslog-ng server all the time. That is to say, it is intermittent.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">If one person can find one message that is not making into our syslog-ng archive, I can only assume that we are dropping other messages as well.<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">How can I debug if and when messages are being lost and not making into the files on my centralized syslog server?<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="xxmsonormal">Bryan Klimek<o:p></o:p></p>
<p class="xxmsonormal">Mayo Clinic<o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>