<div dir="ltr">I&#39;ve look at the program field and it&#39;s empty.<br>It seems that syslog-ng try to find the attribute program before &quot;:&quot; and my logs starts with this &quot;:&quot;. Printing the progam attribute in my log show me that this attribute is really empty.<br>
So I&#39;d like to make a filter using a matcher for the &quot;:&quot; of the message and another matcher on the empty program attribute.<br><br><div class="gmail_quote">2008/8/29 Geller, Sandor (IT) <span dir="ltr">&lt;<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div class="Ih2E3d"><br>
&gt; I got something in the message that can help, but I&#39;d like to<br>
&gt; use it with the empty program attribute (being as specific as<br>
&gt; possible).<br>
&gt;<br>
&gt; So there is no way to filtre an empty program attribute?<br>
<br>
</div>I don&#39;t think so. When syslog-ng parses the log it has to guess<br>
what format is applied to the log line, so it will fill in the<br>
program field with the first string which is right after the<br>
priority date hostname triplet. So I think at least one word<br>
of your log will end up in the program field, and it isn&#39;t<br>
available for match() later... You could workaround this by<br>
combining the program() and the match() into a single filter,<br>
or use an external program to do the filtering.<br>
<br>
Regards,<br>
<br>
Sandor<br>
--------------------------------------------------------<br>
<br>
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.<br>
<div><div></div><div class="Wj3C7c">______________________________________________________________________________<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.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
</div></div></blockquote></div><br></div>