Exclude does not work

Lucas's Avatar


27 Oct, 2017 02:55 PM

Hi, I have logs which look like that:

Oct 27 16:00:53 hostname postfix/smtpd[55935]: connect from .............

So i've set an exclude like this:

"exclude" : { "CMD": ["\/hostname\/"] }

But Logs with this hostname are still shown in the webinterface, what am I doing wrong? I tried CMD and Log as exclude type

  1. Support Staff 1 Posted by potsky on 27 Oct, 2017 03:00 PM

    potsky's Avatar

    You try to exclude /hostname/ ;-)

    Just set ‘ hostname ‘ in the array, remove slashes and backslashes and replace by a single space before and after.

  2. 2 Posted by Lucas on 30 Oct, 2017 08:38 AM

    Lucas's Avatar

    Nah, the trick was to do it like this:

    "exclude" : { "Source": ["\/hostname\/"] }

    Because I've set it to "Source" in my config (in the match part)

  3. Support Staff 3 Posted by potsky on 30 Oct, 2017 09:17 AM

    potsky's Avatar

    Yeah ! You are right !

  4. potsky closed this discussion on 30 Oct, 2017 09:17 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac