--- On Thu, 10/30/08, Piyush Kumar <[EMAIL PROTECTED]> wrote:

> From: Piyush Kumar <[EMAIL PROTECTED]>
> Subject: [Simple-evcorr-users] Usage - java application logs
> To: [email protected]
> Date: Thursday, October 30, 2008, 9:53 PM
> Hi,
> 
> I have a simple question - Can I use SEC for parsing java
> application
> logs and triggering email when a particular pattern  like
> send mail to
> [EMAIL PROTECTED] when 'FATAL' error occured...?

Of course you can, for example, you can write a Single rule for reacting to the 
string FATAL only, ignoring the surrounding context

type=Single
ptype=SubStr
pattern=FATAL
desc=FATAL error has occurred
action=pipe '%s' mail [EMAIL PROTECTED]

Apart from SubStr, you can also use other pattern types like RegExp for 
extracting useful information from the log message and including it in the 
alert.

hth,
risto


> 
> If yes - How to do that ..??    Thanks a lot!!
> 
> -- 
> Thanks & Regards,
> -Piyush
> Mo.: 091-9910904233
> Mail: [EMAIL PROTECTED]
> Web: http://piyush.me/
> 
> -In a world without fences, limits, boundaries and walls,
> Who needs
> Windows and Gates?
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK
> & win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Simple-evcorr-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users


      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to