-
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
Provide a simple way to configure default search query for Discover #7238
Comments
👍 |
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. |
I'm also interested. |
Any movement on this? I would like to prevent 300+ users querying everything by default if possible. |
+1 i want this |
+1 I want this as well. No query at all is better than * |
+1 I would like this as well |
👍 |
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. |
+1 |
2 similar comments
+1 |
👍 |
opened 3.5 years ago. Are any plans to implement this? |
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. |
@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). |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
This comment has been minimized.
This comment has been minimized.
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@arisonl Would it still fit into spaces model? As of now I can't find "default object" settings. |
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) |
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. |
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:
kibana.defaultAppId:
in the yml todiscover/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).The text was updated successfully, but these errors were encountered: