This is the same as the previous config file, when now we look for two patterns:
Kazimir: LogFile = /dev/tty ; EventDir = /tmp/eventdir ; OutputDir = /tmp/outputdir ;\
LockFile = /tmp/kazimir.lock ; EventUpdateInt = 5
Log: Name = syslog ; Type = ASCII ; Path = /var/adm/messages ; TimeFormat=%b %e %H:%M:%S;
Pattern: Name =Toto; RegExp =toto was here; Log = syslog ;
Pattern: Name =Titi; RegExp =titi was here; Log = syslog ;
Event : Name =TotoTitiEvent; Window = 30 ;
Begin
Toto && Titi
End
Order: Name = ordre1 ; Event =TotoTitiEvent; Action = Action1 ;
Action: Name = Action1 ; Path = echo "Toto was here, with Titi !!" ;
Now, do several logger -p user.err 'toto was here' and logger -p user.err 'toto was here'2.6, makes sure the messages were output to /var/adm/messages and see kazimir working