New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pietervogelaar opened this Issue Oct 24, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@pietervogelaar

pietervogelaar commented Oct 24, 2017

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

This comment has been minimized.

Show comment
Hide comment
@palourde

palourde Nov 30, 2017

Member

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

Member

palourde commented Nov 30, 2017

@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 palourde added the Question label Nov 30, 2017

@pietervogelaar

This comment has been minimized.

Show comment
Hide comment
@pietervogelaar

pietervogelaar Dec 1, 2017

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

pietervogelaar commented Dec 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment