conditions OR in rules

I’m looking for how can I put the condition “or” in the rules.
In the Edit Rule / When events match these Conditions section.

example: hostname equals mynam servicestate cpu stats OR memory usage
servicestate contains critical.

thank you

Hi Patrick,

Thanks for reaching out to us about this.

When creating rulesets, you would need to select if you would like this rule to be run when All or Any of the following conditions are met. If you select All, every condition must be met for the rule to run. If you select Any, then only one condition must be met for the rule to run.

There isn’t a regex to identify multiple conditions, you’ll need to have the ruleset set to Any matched conditions.

You can take a look here for more information on Rulesets and creating conditions for your events.

Hope this helps and let me know if you have any other questions!

1 Like

try three conditions like

hostname equals mynam
servicestate matches (cpu stats|memory usage)
servicestate contains critical

thank you for your answer, but your last proposal with “|” doesn’t work I am afraid that isn’t possible, as say Mr. Ashley Lee :roll_eyes:

It’s ok now ; i forget ()
with that now it’s working

details.SERVICEDESC matches regex (Memory Usage|Ping|CPU Stats)

thank s you for your help :wink: