[syslog-ng]Multi filters

Balazs Scheidler bazsi@balabit.hu
Tue, 18 Jun 2002 11:40:36 +0200


On Tue, Jun 18, 2002 at 04:26:15PM +0800, Sofox wrote:
> Hi,
> 
> I am playing with syslog-ng, it seems that config
> log{ source(src); filter(filterA); filter(filterB); destination(dest); }
> means log those messages which satisfy both filterA and filterB to dest, am I right?
> 
> now the question is if i want log messages satisfy filterA or filterB to dest, how should I write the config?

filter f_ored { filter(filterA) or filter(filterB); };

and reference f_ored in your log statement.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1