Kibana: Provide a simple way to configure default search query for Discover

Created on 19 May 2016  路  16Comments  路  Source: elastic/kibana

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).
Filters Query Bar AppServices enhancement

Most helpful comment

+1 i want this

All 16 comments

:+1:

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

+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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ginja picture Ginja  路  3Comments

socialmineruser1 picture socialmineruser1  路  3Comments

spalger picture spalger  路  3Comments

MaartenUreel picture MaartenUreel  路  3Comments

ctindel picture ctindel  路  3Comments