-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Results are not being filtered out properly when using a random word on search bar of Agent Policies tab. #106197
Comments
Pinging @elastic/fleet (Team:Fleet) |
@manishgupta-qasource : Please review the Bug. |
Reviewed & Assigned to @jen-huang CC: @EricDavisX |
TLDR: searching for agent policies without specifying a key e.g "aaa" returns a 400, think we need to add something that adds a key in the backend? @jen-huang @kpollich I could do with a bit of a steer on this one, I think we need to add search behaviour for agent policies when no key is provided. The issue is that when searching for a simple string, "aaa" in the search box, we are getting a 400 response back from the API, originating from the saved objects client:
I find that strange because KQL appears to support this keyless syntax (https://www.elastic.co/guide/en/kibana/current/kuery-query.html#_terms_query), so this is maybe a restriction we have when specifically looking up saved objects? When looking up agents in the adjacent tab, not providing a key works fine, this is converted to a multi match best fields query e.g "aaa" results in:
My instinct was that we could have the agent policies behaviour be to search over name and description, so if there is no ":" in the kuery e.g "aaa" then it would be converted to something like "ingest-agent-policies.name : aa or ingest-agent-policies.description : aa" but I may be missing something obvious |
Thanks for digging into this @hop-dev. After clicking around the tables and observing based on your notes, I am seeing the same behavior and issue. The Agent Policy table throws a 400 on every keystroke when no field is specified for the search. Here's where the
And here are some examples of how it's handled for other resources, namely Enrollment Keys and Agents: kibana/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts Lines 37 to 38 in eaa6dcb
It seems like maybe we need this |
Kibana version: 7.14 BC-3 Kibana cloud environment
Host OS and Browser version: All, All
Preconditions:
Build Details:
Steps to reproduce:
Actual Result
Results are not being filtered out properly when using a random word on search bar of Agent Policies tab.
Expected Result
Results should filtered out properly when using a random word on search bar of Agent Policies tab.
OR
Message like "No agent policies found. Clear filters" is displayed when we search policies with any random value under Agent Policies tab.
What's working
Agents
Agents.-.Fleet.-.Elastic.mp4
enrollment tokens
Enrollment.tokens.-.Fleet.-.Elastic.mp4
Data streams.
Data.streams.-.Fleet.-.Elastic.mp4
What's not working
N/A
Screen recording
Agent.policies.-.Fleet.-.Elastic.mp4
The text was updated successfully, but these errors were encountered: