sensu / uchiwa

Uchiwa is a simple yet effective open-source dashboard for the Sensu monitoring framework.
https://uchiwa.io
MIT License
920 stars 174 forks source link

Negate search on custom client attribute "environment" doesn't work #726

Open pietervogelaar opened 7 years ago

pietervogelaar commented 7 years ago

I would like to search for all servers that are not production.

According to the documentation (https://docs.uchiwa.io/guides/search-queries/) this should be:

environment:^((?!production).)*$

But nothing is found. Am I doing something wrong?

palourde commented 6 years ago

@pietervogelaar Are you using a custom attribute named environment? If so, you need to make sure every client has this attribute.

Otherwise, if you are referring to the actual Uchiwa datacenters, you should use something like dc:^((?! production).)*$.

pietervogelaar commented 6 years ago

@palourde Yes, it's a custom attribute and every client has the attribute. But it still doesn't work.