Negative matcher


How do I write a negative matcher, matching multiple conditions?

Currently, I have alerts with conditions on hashes.
However, I want to silence the alerts, if the hash do not match particular values.

For example,
If hash doesn’t match 0x0…1 and it also doesn’t match 0x0…2, I want the alert to go through.

So, in my AlertManager, I have this silence defined:

But this silences even hash with values such as 8901 or 7890.

How do I write the expression such that it will only silence hashes that doesn’t match 0x…01 and also doesn’t match 0x0…2?

If that’s not feasible, how would I write a silence that will do what I want?

It seems that you have the invert matcher.


is what you want