Hi guys,

I need to have a rule which can help me do the following:

If I detect a pattern, I need to start a sliding time window and check if
the same pattern occurs at least once within this window.

Here is what I do:

type=PairWithWindow
ptype=RegExp
desc=$0
pattern=\"deploymentId\"\s+=>\s+(\S+)deployment#(\S+)\",
continue=TakeNext
action=assign %deploymentId $2;\
       create deploymentId_$2;\
       create DEPLOYMENTID_CONTEXT;\
      write - $2 not heard for 10s since last receive event.
ptype2=RegExp
pattern2=\"deploymentId\"\s+=>\s+(\S+)deployment#(\S+)\",
continue=TakeNext
desc2=$0
action2=write - $2 heart beats heard within 10s.
window=10

This does not work. action 2 never gets executed even the pattern is
matched within 10s window.

Can anyone help?

Thanks.

Yuheng
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to