PERL based log analyzer
SourceForge.net Logo
Home Home Contact us Contacts
Overview Documentation Downloads Contacts Links
 
News & Updates
 
July 21, 2008
v 1.0 now available
Quick Links
 
Sourceforge project's page
CeCILL license
CEA web site
A Basic configuration file next up previous contents
Next: A boolean composite event Up: A few file configuration Previous: A few file configuration   Contents

A Basic configuration file

This configuration file just checks for a single pattern in /var/adm/messages. If found it echoes something in the output file. The pattern it looks for is "toto was here", this pattern is used in event called TotoEvent associated with Action1 via ordre1.
Kazimir: LogFile = /dev/tty ; EventDir = /tmp/eventdir ; OutputDir = /tmp/outputdir ;\
	LockFile = /tmp/kazimir.lock ; EventUpdateInt = 5 

Log: Name = totolog ; Type = ASCII ; Path = /var/adm/messages ; TimeFormat=%b %e %H:%M:%S;


Pattern:  Name =Toto; RegExp =toto was here; Log = totolog ; 

Event : Name =TotoEvent; Window = 30 ; 
Begin 
        Toto   
End

Order: Name = ordre1 ; Event =TotoEvent; Action = Action1 ;
Action: Name = Action1 ; Path = echo "Toto was here !!" ;
Now, run kazimir with this configuration file, then use logger -p user.err 'toto was here' and see kazimir working 2.5



Philippe Deniel 2008-07-22
Designed by CMG Technologies, adapted by Thomas LEIBOVICI
Design downloaded from Free Templates