uchiwa icon indicating copy to clipboard operation
uchiwa copied to clipboard

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

Open pietervogelaar opened this issue 8 years ago • 2 comments

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?

pietervogelaar avatar Oct 24 '17 08:10 pietervogelaar

@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).)*$.

palourde avatar Nov 30 '17 18:11 palourde

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

pietervogelaar avatar Dec 01 '17 08:12 pietervogelaar