[Storm] Add multiple keys

zarathos

Lurker
Member
Joined
Threads
1
Posts
15
hi guys,

how can i to add multiple keys such as success key , ban key or failure key in Storm ?
for example:
i have 2 different ban keys for a weblogin
how can i handle this situation ?
by comparing two condition in one variable ?
or some thing else ...

thanks
 
  • Z
    Created
  • Last reply
  • 1
    Replies
  • 364
    Views
  • 2
    Participants
  • Participants list
case1:

Success-Condition = $IndexOfSuccKey# >= 0
Failure-Condition = $IndexOfFailKey1# >= 0

Ban-Condition = $IndexOfFailKey1# < 0 && $IndexOfSuccKey# < 0


this means if not succ or failure keys then ban the proxy

Case2:


Success-Condition = $IndexOfSuccKey# >= 0 || $IndexOfSuccKey2# >= 0
Failure-Condition = $IndexOfFailKey1# >= 0 || $IndexOfFailKey2# >= 0

Ban-Condition = $IndexOfFailKey1# < 0 && $IndexOfFailKey2# < 0 && $IndexOfSuccKey# < 0 && $IndexOfSuccKey2# < 0


this means if not any of these keys then ban the proxy



Good Luck.