-
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
Limit the size of saved searches in Dashboards #11758
Comments
The advanced setting Regardless of the potential bug above, I do see some value saving a limit per saved search. For some searches you might only need the most recent 10 results to show in the dashboard. It seems inefficient to query and return 500 or |
Yep, it's a bug more than an ER. If you set the size inside the object it will take the |
This is the discuss ticket: https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568 I've tried reproducing it now, but it seems ok on 5.4.1. So maybe we can close it, it was probably fixed in the meantime by something unrelated. |
Okay, I'll go ahead and close. Please re-open if anyone comes up with a reproducible scenario! |
I'm using Kibana 6.0.0 and the size parameter in the saved search is not taken into account when used in a dashboard. |
@NeVraX182 @marius-dr I have the same problem, my Kibana version is 6.0.0. I think limit the result size is really important and useful. |
Using 5.6.4 and size parameter for save search is not taken in account in both discover and dashboard mode. only discover:sampleSize is taken in account for everything. We should be able to use size to override the sampleSize in a search. |
I have a very related query, in fact I think it is almost the same as the original request over at https://discuss.elastic.co/t/limit-the-number-of-search-result-in-a-dashboard/85568/10 I want to construct a visualisation (currently trying using a line chart), that is basically 'show me the last 10 events of this type'. The obvious way to achieve that would seem to set the |
@marius-dr, I am using version 6.8.3 and i am still getting this issue. Is there any fix for this? |
Pinging @elastic/kibana-app (Team:KibanaApp) |
Hi there, Good Day to the ElasticSearch Team & Community. I'm a fairly new user of Elastic Search, couple of weeks old, and have found the community to be very helpful in resolving barriers in my path of using ES. I'm writing here to inform that in V 7.12 as well, like others have mentioned before me, the "size" parameter is not being used while loading the search panel in Dashboards. Is there any other solution available for this? I want to display 10-20 results in 1 page and allow user to navigate through the result set to a maximum of discover.sampleSize/size pages. If anybody knows how to do this then kindly help me. Thanks |
Same here with 7.11.2, I want to use a per-visualisation size, but the default discover:sampleSize is taken in account. For obvious reason I can't modify discover:sampleSize and I want it to remain 500, meanwhile in my visualization I only want 10 results. |
…th a saved search (#157269) - Closes #94140 - #11758 - #4060 - #3220 - #23307 - Closes #131130 ## Summary This PR allows to change current sample size right from Discover page, no need to modify the global default value. Saved search panels on Dashboard will also use the saved value to fetch only the requested sample size. This customisation was requested by many customers as it will allow to load Dashboards faster. Current range for the slider: from 10 to 1000 (with a step 10). <img width="400" alt="Screenshot 2023-10-09 at 11 10 52" src="https://github.com/elastic/kibana/assets/1415710/74e2e4ad-9929-4a44-8d85-c2baafccbaa6"> ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
It will be possible to configure sample size per dashboard panel from 8.12. |
Currently there is a way to limit the number of results shown in the discover page, where you create the saved searches. By modifying
discover:sampleSize
in the Advanced settings you can limit them.But if you then import the saved object inside a dashboard, the limit won't be there and it will show all of the results.
I see 2 ways of solving this, each with their pros and cons:
The text was updated successfully, but these errors were encountered: