<div dir="ltr">Please note that by default host() uses regexps where the &#39;.&#39; matches any character.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 9:31 PM, Renato Bezerra <span dir="ltr">&lt;<a href="mailto:renatobamorim@gmail.com" target="_blank">renatobamorim@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 dir="ltr">Hi Jakub,<div><br></div><div>Thanks for the fast reply. I have others conf files, each one to a different device type that I include on main configuration (just for organization), all confs are based on &quot;host&quot; filter.</div>


<div><br></div><div>The source is a tcp class on my main configuration, if you judge necessary I can send the others confs, but on none of then i put this ip address on filters.</div><div><br></div><div><br></div></div><div class="gmail_extra">


<br clear="all"><div><div><br></div><div>---</div>Renato Bezerra</div>
<br><br><div class="gmail_quote">2014-07-17 16:16 GMT-03:00 Jakub Jankowski <span dir="ltr">&lt;<a href="mailto:shasta@toxcorp.com" target="_blank">shasta@toxcorp.com</a>&gt;</span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>On 17.07.2014 21:09, Renato Bezerra wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m using syslog-ng in a long time, but recently i noted that, in some<br>
&gt; cases, the log has sent to a wrong destination.<br>
&gt;<br>
&gt; I have many devices sending logs to my host, the problem appears when<br>
&gt; the server receive webservers logs, they are delivered to a different<br>
&gt; destination and I don&#39;t known how.<br>
&gt;<br>
&gt; here is the configuration:<br>
&gt;<br>
&gt; destination apache {<br>
&gt;         file(&quot;/var/log/webserver/$R_YEAR-$R_MONTH-$R_DAY-$R_HOUR&quot;<br>
&gt;         owner(ll)<br>
&gt;         group(ll)<br>
&gt;         perm(0644)<br>
&gt;         dir_perm(0755)<br>
&gt;         create_dirs(yes));<br>
&gt; };<br>
&gt;<br>
&gt; filter f_apache {<br>
&gt;      (<br>
&gt;          host(&quot;xxx.xxx.xxx.82&quot;) or<br>
&gt;          host(&quot;xxx.xxx.xxx.137&quot;)<br>
&gt;      );<br>
&gt; };<br>
&gt;<br>
&gt; log {<br>
&gt;      source(aaa);<br>
&gt;      filter(f_apache);<br>
&gt;      destination(apache);<br>
&gt; };<br>
&gt;<br>
&gt; The ip address xxx.xxx.xxx.137 send a duplicate log event to another<br>
&gt; directory, without any other configuration.<br>
&gt;<br>
&gt; Have you seen this?<br>
<br>
</div></div>Well, is that your *entire* configuration? I very much doubt so. You<br>
should post the entire config, not just this snippet. How are we<br>
supposed to know what this &quot;another directory&quot; is, and what filtering<br>
you apply in the log {} block that sends logs to it?<br>
<span><font color="#888888"><br>
<br>
<br>
J.<br>
<br>
<br>
--<br>
Jakub Jankowski|<a href="mailto:shasta@toxcorp.com" target="_blank">shasta@toxcorp.com</a>|<a href="http://toxcorp.com/" target="_blank">http://toxcorp.com/</a><br>
GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D<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><br>
<br>
</font></span></blockquote></div></div></div><br></div>
<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><br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Bazsi
</div>