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
Using a 'Let' statement in the Kazimir tag parameters next up previous contents
Next: How can I use Up: The 'Let' statement. Operation Previous: The 'Let' statement. Operation   Contents

Using a 'Let' statement in the Kazimir tag parameters

It is possible to use a 'Let' keyword with the 'Kazimir:' definition. In the case, the variable operation in the Let statement will be done at the end of every event check This is an example:
Kazimir: LogFile = /dev/tty ; EventDir =/tmp/eventdir ; \
 OutputDir = /tmp/outputdir  ; LockFile = /tmp/kazimir.lock ;\
 EventUpdateInt = 5s ; IdleTime= 1 ; Let = { $(evcheckcounter) +<- 1 }

Variable: Name = evcheckcounter ; Default = 0

In this example, we can see that the variable named 'evcheckcounter' is a counter of the number of events checks, because it is initialized to 0 and incremented by one at the event check by using a 'Let' in the 'Kazimir' tag.



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