If I've got an entry in syslog-ng
log {
source (src);
filter (filter1);
filter (filter2);
filter (filter3);
filter (filter4);
destination (all_log)
}
And, say filter4
is a very permissive filter and filter3
is a filter to eradicate a couple irksome hosts. If filter2
and/or filter1
allow one of those irksome hosts, will it get logged?
From the syslog-ng administrators guide (v 2.0, which is old, but what you're using)
So that makes sense, it would be way too complicated and undocumented if it worked any other way. So you're going to have to find some other way of accomplishing what you're trying to do!
It looks like, in general, the way you would want to exclude a host is to use
not host('HOSTNAME') or (host('HOSTNAME') and level(...) )
as your filter.