<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 12 (filtered medium)">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* 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;
        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";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Bazsi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Yes, it 'fixed' the issue with 'flags(final);' and embedded logs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<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:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu]
<b>On Behalf Of </b>Balazs Scheidler<br>
<b>Sent:</b> Tuesday, December 10, 2013 11:59 AM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] syslog-ng 3.5.1 - question about flags(final)...<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>Hi,<o:p></o:p></p>
<p>Any news if these fix the issue for you?<o:p></o:p></p>
<div>
<p class="MsoNormal">On Dec 1, 2013 1:19 PM, &quot;Balazs Scheidler&quot; &lt;<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Hi,<br>
<br>
A fix and test is available on this branch:<br>
<br>
<a href="https://github.com/balabit/syslog-ng/tree/3.5/f/cfg-tree-final-fix" target="_blank">https://github.com/balabit/syslog-ng/tree/3.5/f/cfg-tree-final-fix</a><br>
<br>
I'd really appreciate any further testing and whether the 3.4/3.5<br>
behaviour is consistent with 3.3.<br>
<br>
Algernon should pick these patches to the stable branches shortly,<br>
here's the pull request for that:<br>
<br>
<a href="https://github.com/balabit/syslog-ng/pull/26" target="_blank">https://github.com/balabit/syslog-ng/pull/26</a><br>
<br>
Thanks for the report.<br>
Bazsi<br>
<br>
<br>
On Wed, 2013-11-27 at 11:22 &#43;0100, Balazs Scheidler wrote:<br>
&gt; hi,<br>
&gt;<br>
&gt; thanks, moving this higher on my list.<br>
&gt;<br>
&gt; On Mon, 2013-11-25 at 22:36 &#43;0000, Johnson, Chris (HP TippingPoint<br>
&gt; Roseville) wrote:<br>
&gt; &gt; *ping* :)<br>
&gt; &gt;<br>
&gt; &gt; Chris<br>
&gt; &gt;<br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Balazs Scheidler<br>
&gt; &gt; Sent: Tuesday, November 19, 2013 4:21 AM<br>
&gt; &gt; To: Syslog-ng users' and developers' mailing list<br>
&gt; &gt; Subject: Re: [syslog-ng] syslog-ng 3.5.1 - question about flags(final)...<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; This seems to be a bug. I'll have to put it aside for now, but I'll try to work on this ASAP. Just Evan also posted some details about a bug of his and I'd like to work on that first.<br>
&gt; &gt;<br>
&gt; &gt; If you don't hear from me in 2 days, feel free to ping me.<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt; Bazsi<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, 2013-11-18 at 22:02 &#43;0000, Johnson, Chris (HP TippingPoint<br>
&gt; &gt; Roseville) wrote:<br>
&gt; &gt; &gt; Hello all,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I'm in the process of upgrading from version 3.3.9 to 3.5.1 and have a<br>
&gt; &gt; &gt; question about how the 'flags(final);' is working in 3.5.1.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; In 3.3.9, I use the following structure of imbedded log statements:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ######################################################################<br>
&gt; &gt; &gt; ##########<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; # Service ipsec<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; #<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; filter f_ipsec_pgm{program(&quot;IPSEC-*&quot; type(&quot;glob&quot;))<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; or program(&quot;IKE-*&quot; type(&quot;glob&quot;))<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; or program(&quot;CHARON-*&quot; type(&quot;glob&quot;))<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; or program(&quot;charon-*&quot; type(&quot;glob&quot;));<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; };<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; filter f_ipsec_lvl_01{level(warning..emerg)};<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; filter f_ipsec_lvl_02{level(info..emerg)};<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; log {<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; source(s_local);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; filter(f_ipsec_pgm);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; log {<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filter(f_ipsec_lvl_01);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination(d_logID_11);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; log {<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filter(f_ipsec_lvl_02);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite(r_quote_newlines);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination(d_logID_13);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; };<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; flags(final);<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; };<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; In this case log messages of the 'correct' program would further be<br>
&gt; &gt; &gt; filtered on their severity level.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &middot; &nbsp; &nbsp; &nbsp; &nbsp;Info level messages would only be sent to 'd_logID_13'<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &middot; &nbsp; &nbsp; &nbsp; &nbsp;Warning level messages (and above) would be sent to BOTH<br>
&gt; &gt; &gt; 'd_logID_11' and 'd_logID_13'.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &middot; &nbsp; &nbsp; &nbsp; &nbsp;Debug level messages would be discarded.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Under 3.5.1, the 'filtering ' stops after it matches once:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &middot; &nbsp; &nbsp; &nbsp; &nbsp;Warning messages (and above) are only sent to 'd_logID_11'<br>
&gt; &gt; &gt; and NOT 'd_logID_13'.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &middot; &nbsp; &nbsp; &nbsp; &nbsp;Info messages are still (correctly) being sent only to<br>
&gt; &gt; &gt; 'd_logID_13'.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; If I remove (or comment out) the 'flags(final);' statement, messages<br>
&gt; &gt; &gt; are filtered correctly (i.e. the way I *want* them to be filtered J)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; except that they also are being processed by all the following log<br>
&gt; &gt; &gt; statements and are being caught in my final filter of 'program(&quot;*&quot;<br>
&gt; &gt; &gt; type(&quot;glob&quot;))'.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; NOTE: yes, I know that I could use 'flags(fallback)' in my final<br>
&gt; &gt; &gt; filter, but that would still have every message processed by every log<br>
&gt; &gt; &gt; filter, and I would like to avoid that.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; So, what would be the correct way to set up my log statement to<br>
&gt; &gt; &gt; re-create the 3.3 behavior?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ______________________________________________________________________________<br>
&gt; &gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; &gt; 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>
&gt; &gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt; &gt;<br>
&gt; &gt; ______________________________________________________________________________<br>
&gt; &gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; &gt; 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>
&gt; &gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; 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>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
<br>
<br>
<br>
<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><o:p></o:p></p>
</div>
</div>
</body>
</html>