Re: [Simple-evcorr-users] look-up a string in a hash, then write hash value

2017-08-04 Thread Risto Vaarandi
> > I create a rule which uses %arrayid_to_lnn to translate Array ID into LNN > > > > # Handle Isilon node down messages > > type=SingleWithSuppress > > ptype=regexp > > pattern=T(\d\d:\d\d:\d\d)\-\d\d:\d\d (.*?) .*gmp.info.c.* group change:.* > (node \d+ drive \d+ changed to up) > > desc=Drive

Re: [Simple-evcorr-users] Understanding % when creating config file global variables

2017-08-04 Thread Risto Vaarandi
2017-08-04 15:15 GMT+03:00 Stuart Kendrick : > I want a mental model for how to sec identifies variables in a config file. > > > > Here for example, I want to save some typing in my rules by creating a > variable containing a string. In this example, I spend a lot of

Re: [Simple-evcorr-users] look-up a string in a hash, then write hash value

2017-08-04 Thread Stuart Kendrick
Ah, I fumbled sending the correct stanza. The rule which concerns me is actually this one: type=SingleWithSuppress ptype=regexp pattern=T(\d\d:\d\d:\d\d)\-\d\d:\d\d (.*?) .*gmp.info.c.* new group:.* down:\s+(.*?),\s desc=Down Nodes: $3 window=5 action=lcall %node $3 -> ( sub {

[Simple-evcorr-users] Understanding % when creating config file global variables

2017-08-04 Thread Stuart Kendrick
I want a mental model for how to sec identifies variables in a config file. Here for example, I want to save some typing in my rules by creating a variable containing a string. In this example, I spend a lot of time (in the rules) writing to a particular file, so I want to type “action=write