In message <[email protected]>,
"ZERIBI Moufid" writes:
> I have a database log file that I'd like
>to analyse and send e-mail each time a keyword (ORA-) is found. The
>problem is I want to exclude some specific ORA-XXXX errors. How can I
>say in my pattern that I want to find all "ORA-" entries except those
>which are ORA-XXXX, ORA-YYYY.
>
>This is actually what I have. It doesn't distinguish the uninteresting
>ORA-XXXX, ORA-YYYY from the others
>
>>type=Single
>ptype=SubStr
>pattern=ORA-
>desc=Oracle alert.log warning
>action=shellcmd sendMail.bat

In the file before this rule put some suppress rules that match the
exact error you want to ignore. For example:

  type=Suppress
  ptype=SubStr
  pattern=ORA-XXXX
  desc=Ignore oracle xxxx errors

  type=Suppress
  ptype=SubStr
  pattern=ORA-YYYY
  desc=Ignore oracle yyyy errors

Once a rule matches in a file, the event is not passed to the
following rules unless you set the continue parameter fo the rule to
takenext. So putting these suppress rules earlier in the file will
consume the event and stop it from triggering your single rule.

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to