Skip to content
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

Provide a simple way to configure default search query for Discover #7238

Open
ppf2 opened this issue May 19, 2016 · 21 comments
Open

Provide a simple way to configure default search query for Discover #7238

ppf2 opened this issue May 19, 2016 · 21 comments
Assignees
Labels
Feature:Filters Feature:Query Bar Querying and query bar features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort papercut Small "burr" in the product that we should fix. release_note:enhancement Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@ppf2
Copy link
Member

ppf2 commented May 19, 2016

Currently, the default search query for Discover tab is *. It will be nice to provide a simple configurable option for the end user to override the default query string for Discover to something that is user-defined (eg. to include a predefined filter).

There are 2 potential workarounds here:

  • Use index pattern to point to an index alias with a filter, and have it default to a specific index pattern.
  • Add a saved search (eg. my-saved-search) with a filter in place, then change kibana.defaultAppId: in the yml to discover/my-saved-search. This is probably not a good workaround even though it works (for kibana.defaultAppId is really for the appid, eg. "discover" only, and may break in the future if we start validating this field).
@annawoodard
Copy link

👍

@pmaccabe
Copy link

pmaccabe commented Mar 14, 2017

Any chance of this getting done any time soon? This would at least provide a mitigation of querying data users don't want and intend to query. Several issues have been closed as duplicates, this is clearly a noticed issue, I would consider it more of a defect than an enhancement that the interface forces unwanted querying.

@FractalizeR
Copy link

I'm also interested.

@danielkasen
Copy link

Any movement on this? I would like to prevent 300+ users querying everything by default if possible.

@jmphilli
Copy link

+1 i want this

@razvanor
Copy link

+1 I want this as well. No query at all is better than *

@konzak
Copy link

konzak commented Sep 13, 2018

+1 I would like this as well

@ryanleung
Copy link

👍

@pmaccabe
Copy link

The load caused by these unwanted queries can be quite significant as they return everything and it costs real money in compute resources when they occur.

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Discovery labels Sep 16, 2018
@gpr95
Copy link

gpr95 commented Oct 18, 2018

+1

2 similar comments
@kvmuralidhar
Copy link

+1

@rock998877
Copy link

👍

@exper0
Copy link

exper0 commented Jan 7, 2020

opened 3.5 years ago. Are any plans to implement this?

@VijayDoshi
Copy link

Seems like this is something we'd want at the user or space level if we were to do it. Assigning to @arisonl for consideration in the context of spaces.

@arisonl
Copy link
Contributor

arisonl commented Jan 9, 2020

@VijayDoshi Thank you for pinging me this issue. I have discussed with @m-adams a similar request during a recent field catch-up. Just in case it is of help in the meantime, since 7.5 you can define a default object (similarly to the second workaround mentioned by @ppf2) per space and through the UI (advanced settings).

@timroes timroes added Team:AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@c4ss4fr4ss

This comment has been minimized.

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Jun 2, 2021
@vadimkibana vadimkibana added Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed Team:AppServicesSv labels Aug 9, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@jughosta jughosta added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. papercut Small "burr" in the product that we should fix. and removed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels May 8, 2023
@jughosta
Copy link
Contributor

jughosta commented May 8, 2023

@arisonl Would it still fit into spaces model? As of now I can't find "default object" settings.

@ninoslavmiskovic
Copy link
Contributor

A couple of comments here to consider. Should this be configurable per space or per user profile. Also we need to make it scalable for future types of saved searches, queries etc. (e.g ESQL)

@rgarcia89
Copy link

From my point of view, it should be sufficient to make a saved search configurable as default search query per space. We use them for example to separate projects. Therefore each space has it's owned saved searches and dashboards. A per user definition would be complicated and need a be per space separation as well, since not every space holds the same saved searches.

@kertal kertal added the Icebox label Sep 24, 2024
@kertal kertal removed the Icebox label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Filters Feature:Query Bar Querying and query bar features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort papercut Small "burr" in the product that we should fix. release_note:enhancement Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests