[syslog-ng]Conditional logic

Gregor Binder gb@rootnexus.net
Tue, 15 Jan 2002 20:11:59 +0100


jesse.keefe@convergys.com on Tue, Jan 15, 2002 at 01:55:26PM -0500:

Hi Jesse,

> What I would like to do is have the Mount Tape matched and if it
> fails page someone. If it passes, just continue on.
> Any ideas?

Yes, simply combine two conditions in one filter statement. Such as:

  filter f_tload { match("MountTape") and match("failed"); };

Then use this filter for the log-statement sending to your program
destination that does the paging for you.

Regards,

-- 
 ____ ____ 
/  _/| -  >  Gregor Binder <gb@(rootnexus.net|sysfive.com)>
| / || _\ \
\__ Id: 0xE2F31C4B Fp: 8B8A 5CE3 B79B FBF1 5518 8871 0EFB AFA3 E2F3 1C4B