tag:support.pimpmylog.com,2013-12-07:/discussions/problems/560-exclude-does-not-workPimp my Log: Discussion 2017-10-30T09:17:58Ztag:support.pimpmylog.com,2013-12-07:Comment/438847582017-10-27T14:55:12Z2017-10-27T14:55:14ZExclude does not work<div><p>Hi, I have logs which look like that:</p>
<p><code>Oct 27 16:00:53 hostname postfix/smtpd[55935]: connect from .............</code></p>
<p>So i've set an exclude like this:</p>
<p><code>"exclude" : { "CMD": ["\/hostname\/"] }</code></p>
<p>But Logs with this hostname are still shown in the webinterface, what am I doing wrong? I tried CMD and Log as exclude type</p></div>Lucastag:support.pimpmylog.com,2013-12-07:Comment/438847582017-10-27T15:00:58Z2017-10-27T15:00:58ZExclude does not work<div><p>You try to exclude /hostname/ ;-)</p>
<p>Just set ‘ hostname ‘ in the array, remove slashes and backslashes and replace by a single space before and after.</p></div>potskytag:support.pimpmylog.com,2013-12-07:Comment/438847582017-10-30T08:38:27Z2017-10-30T08:38:28ZExclude does not work<div><p>Nah, the trick was to do it like this:</p>
<p><code>"exclude" : { "Source": ["\/hostname\/"] }</code></p>
<p>Because I've set it to "Source" in my config (in the match part)</p></div>Lucastag:support.pimpmylog.com,2013-12-07:Comment/438847582017-10-30T09:17:54Z2017-10-30T09:17:54ZExclude does not work<div><p>Yeah ! You are right !</p></div>potsky