Re: [Simple-evcorr-users] using variables learned in rule A in rule B's perlfunc: possible?

2020-10-18 Thread Risto Vaarandi
# two examples, I have many stanzas like this for individual JunOS daemons > [hence many files] > > type=Jump > > ptype=RegExp > > pattern= mgd\[[0-9]+\]: > > cfset=150-juniper-mgd > > continue=EndMatch > > > > type=Jump > > ptype=RegExp > > pattern

Re: [Simple-evcorr-users] using variables learned in rule A in rule B's perlfunc: possible?

2020-10-18 Thread Michael Hare via Simple-evcorr-users
From: risto.vaara...@gmail.com Sent: Saturday, October 17, 2020 5:13 PM To: Michael Hare Cc: simple-evcorr-users@lists.sourceforge.net Subject: Re: [Simple-evcorr-users] using variables learned in rule A in rule B's perlfunc: possible? hi Michael, there are a couple of ways to address this prob

Re: [Simple-evcorr-users] using variables learned in rule A in rule B's perlfunc: possible?

2020-10-17 Thread Risto Vaarandi
hi Michael, there are a couple of ways to address this problem. Firstly, instead of using sec match variables, one can set up Perl's native variables for sharing data between rules. For example, the regular expression pattern of the first rule can be easily converted into perlfunc pattern, so that

[Simple-evcorr-users] using variables learned in rule A in rule B's perlfunc: possible?

2020-10-17 Thread Michael Hare via Simple-evcorr-users
Hi- I'm sorry to ask what is probably very basic question, but I have struggling with this for awhile (I have perused the manual a lot and the mailing list a bit) and could use some guidance. The short version is: is there a way to take the results of a pattern match in one rule and use that v