[syslog-ng]Catch All Statement
Balazs Scheidler
syslog-ng@lists.balabit.hu
Fri, 11 Apr 2003 14:48:39 +0200
On Thu, Apr 10, 2003 at 03:17:03PM -0700, Nate Campi wrote:
> On Thu, Apr 10, 2003 at 02:26:51PM -0700, Doug Peterson wrote:
> > Thanks Nate -- I'm not sure this applies to me though.
> > While yes that catches all specified levels, I was
> > hoping to utilize the fallback flag. My understanding
> > is that the fallback flag takes anything that hasn't
> > been logged up until the log statement in which the
> > fallback flag is in, gets logged to whatever
> > destination you specify.
> >
> > Does the fallback flag do what I want? Also, I've read
> > the descriptions of the "catchall" flag, but I don't
> > fully understand it.. should I be using that instead?
>
> Q: How can I filter messages so that only not-already-routed lines will
> be routed/filtered again?
>
> A: This is a catchall statement, and should catch all messages which
> were not accepted any of the previous statements.
>
> log { source(src); filter(DEFAULT); destination(dst); };
>
> <URL:http://www.campin.net/syslog-ng/faq.html#catchall>
this DEFAULT filter hack was present in 1.4.x and before, it was removed in
the 1.5.x cycle. (and was replaced by the 'flags' feature)
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1