Fantastic, you hit the nail right on the head! Works like a charm now.<div><br></div><div>Now I&#39;m wondering how it is you found out that it was this way and not the other? Robert maintains the documentation for rsync which I did look at, but with 225 pages I wasn&#39;t able to find this useful piece of information. Man syslog-ng.conf does not explain it either, in fact I searched Google and found several &quot;tutorials&quot;, none mentioning this ;-)</div>
<div><br></div><div>Maybe I&#39;m the idiot here, however I thought that this was a common way of getting rid of unwanted crud from the syslog? </div><div><br></div><div>Also, I just read the gentoo-wiki site page again and it says :</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">
filter f_shorewall { not match(&quot;regex&quot; value(&quot;Shorewall&quot;)); };  # Filter everything except regex keyword Shorewall</pre></span></div><div>Surely this is the exact same mistake I made? Either that or I&#39;m reading it wrong....</div>
<div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On 17 March 2010 23:39, Alan McKinnon <span dir="ltr">&lt;<a href="mailto:alan.mckinnon@gmail.com">alan.mckinnon@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wednesday 17 March 2010 01:22:59 Ralph Slooten wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; Has anyone here worked out how to filter out syslog messages using<br>
&gt; syslog-ng v3? The old syntax doesn&#39;t work (well complains bitterly about<br>
&gt; performance and says to use regex), and no matter what I try I cannot get<br>
&gt; the new syntax to work :-/ I have a syslog-ng server which logs to MySQL<br>
&gt; for multiple clients in a network, however the database just keeps growing<br>
&gt; with irrelevant data I&#39;d prefer to just quietly ignore on the server side.<br>
&gt;<br>
&gt; I&#39;m trying to filter out (exclude) messages such as:<br>
&gt;   (root) CMD (/root/bin/vmware-checker)<br>
&gt; and<br>
&gt;   (root) CMD (test -x /usr/sbin/run-crons &amp;&amp; /usr/sbin/run-crons )<br>
&gt;<br>
&gt; ==============<br>
&gt; filter myfilter {<br>
&gt;         not match(&quot;regex&quot; value(&quot;\/usr\/sbin\/run-crons&quot;))<br>
&gt;         and not match(&quot;regex&quot; value(&quot;vmware-checker&quot;));<br>
&gt; }<br>
<br>
</div>Hah! this caught me out too.<br>
<br>
The value of &quot;value&quot; cannot be anything arbitrary - syslog-ng has no clue what<br>
you mean. The value is a field name, either a pre-defined one, or something<br>
you defined using a parser. The docs are ambiguous on this, it&#39;s not clear<br>
that the supplied values are abstracts. You are truing to search for the<br>
string &quot;regex&quot; in a field called /usr/bin/vmware-checker.<br>
<br>
Which obviously will not work.<br>
<br>
I think you want:<br>
<br>
match(&quot;\/usr\/sbin\/run-crons&quot; value &quot;MESSAGE&quot;)<br>
<br>
Note that it is MESSAGE. You want the field name, not it&#39;s dereferenced value.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
&gt; log {<br>
&gt;         source(src);<br>
&gt;         source(remote);<br>
&gt;         filter(myfilter);<br>
&gt;         destination(d_mysql);<br>
&gt; };<br>
&gt; ===============<br>
&gt;<br>
&gt; However they just keep coming through the filter (ie: not matching the &quot;not<br>
&gt; match&quot; filter). I&#39;ve tried escaping the slashes, not escaping them ... even<br>
&gt; partial words, but I obviously am missing something somewhere.<br>
&gt;<br>
&gt; Anyone have any ideas?<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt; Ralph<br>
<br>
</div></div><font color="#888888">--<br>
alan dot mckinnon at gmail dot com<br>
</font></blockquote></div><br></div>