<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:18.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:"Times New Roman",serif;
        font-weight:bold;}
span.37gsgha8dmraxbmqs-ppg8
        {mso-style-name:_37gsgha8dmraxbmqs-ppg8;}
span.2fczxbe1dlmh4ofc7b3dun
        {mso-style-name:_2fczxbe1dlmh4ofc7b3dun;}
p.s14dydj4-10, li.s14dydj4-10, div.s14dydj4-10
        {mso-style-name:s14dydj4-10;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal" style="background:white;vertical-align:baseline"><span style="font-size:13.5pt;font-family:"Arial",sans-serif;color:#878A8C"><img width="1" height="1" style="width:.0104in;height:.0104in" id="Picture_x0020_1" src="cid:image001.png@01D4EB8B.1BD08960" alt="https://www.redditstatic.com/desktop2x/img/renderTimingPixel.png"></span><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">Disclaimer:
 I'm not an expert in either Linux or syslog-ng. I'm also not a programmer :).<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B"><o:p> </o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">That being said, I've built a syslog-ng --> Splunk deployment and I'm trying to drop unwanted log messages before they make their way to Splunk... so drop them at syslog-ng. There are
 going to be approx. 700 devices logging to this deployment (routers, switches, firewalls, IPAM, AAA, etc..) so I need to make sure whatever I do can scale easily and my teammates can help me manage it.<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B"><o:p> </o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">I'm trying to drop messages that are similar to the below:<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">Apr 5 06:02:17 x.x.x.x 2019 Apr 5 06:02:17 EDT: %USER-3-SYSTEM_MSG: NTP Receive dropping message: Received NTP control mode packet. Drop count:4200 - ntpd<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">As well as:<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">Apr 5 08:03:49 x.x.x.x Apr 5 2019 12:03:48.895 UTC: %SNMP-3-RESPONSE_DELAYED: processing GetNext of entPhysicalEntry.2.1065 (5739 msecs)<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B"><o:p> </o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">Two different devices. I've tried literally dozens of methods, my latest is below and I can't figure out why we’re still logging these messages:<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B"><o:p> </o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">filter f_trash { match(SNMP-3-RESPONSE_DELAYED value(MSGHDR)); and<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">match(NTP Receive dropping message value(MSG))};<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">log { source(s_sys); filter(f_trash); flags (final);};<o:p></o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B"><o:p> </o:p></span></p>
<p class="s14dydj4-10" style="margin:0in;margin-bottom:.0001pt;line-height:15.75pt;background:white;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#1A1A1B">Any help / constructive criticism would be greatly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>