-
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
[Security Solution] Pagination is broken in the alerts table #201913
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
This is related to the 10k limit that ES has. It happens not only on the last page, but on the first page after you reach 10k elements in the table. For example in the video below, I had 100 elements per page, as soon as I reach page 101 the error appears. Screen.Recording.2024-11-27.at.4.18.24.PM.mov |
Here's the payload of the call being made
and here's the error coming back from the backend
|
@PhilippeOberti , I agree that it is an ES limit but they also provide an alternative to avoid this problem. I think alternative could be to cap the results at @elastic/response-ops team, i think this will be affecting all the consumers of alert table because of how |
Hey all. Sorry for the late reply. I agree that we should cap the results to 10K instead of showing an error. I would suggest not using the Scroll API or the Search after API as ES does not recommend the first one and the second one does not work with pagination (you cannot get results by page or perPage). We can show a warning banner to the users that only 10K alerts are being shown, and if they want to view more, they should narrow their search criteria. We follow this pattern in cases and the rule's execution log. |
Describe the bug:
Kibana/Elasticsearch Stack version:
8.17.0 - BC1
Initial setup:
Steps to reproduce:
Current behavior:
An error is displayed
Result window is too large, from + size must be less than or equal to: [10000] but was [12200]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.
Expected behavior:
The text was updated successfully, but these errors were encountered: