[index mgmt] Use esql instead of query dsl to get the index count#252422
Merged
[index mgmt] Use esql instead of query dsl to get the index count#252422
Conversation
Contributor
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
cc @mattkime |
ElenaStoeva
approved these changes
Feb 10, 2026
Contributor
ElenaStoeva
left a comment
There was a problem hiding this comment.
Thanks for the fix @mattkime! Tested locally with the scenario from the API integration test and it works well. Changes also lgtm.
Contributor
|
Starting backport for target branches: 9.3 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Feb 10, 2026
…astic#252422) ## Summary Closes elastic#252409 In some cases the index management index list doc count will show error if the combined length of indices exceeds 4096 bytes. Indices can have names up to 255 chars so this problem could occur on a page size as small as 20. The solution is to use ESQL instead of query dsl to get the index doc counts since the index list gets passed as part of the query body instead of as part of the url. ### Release Notes Fixes problem in 9.3.0 loading the doc count in index management when viewing larger page sizes with long index names. (cherry picked from commit 611fcf9)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Feb 10, 2026
…nt (#252422) (#252547) # Backport This will backport the following commits from `main` to `9.3`: - [[index mgmt] Use esql instead of query dsl to get the index count (#252422)](#252422) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Matthew Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2026-02-10T14:12:37Z","message":"[index mgmt] Use esql instead of query dsl to get the index count (#252422)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/252409\n\nIn some cases the index management index list doc count will show error\nif the combined length of indices exceeds 4096 bytes. Indices can have\nnames up to 255 chars so this problem could occur on a page size as\nsmall as 20.\n\nThe solution is to use ESQL instead of query dsl to get the index doc\ncounts since the index list gets passed as part of the query body\ninstead of as part of the url.\n\n### Release Notes\n\nFixes problem in 9.3.0 loading the doc count in index management when\nviewing larger page sizes with long index names.","sha":"611fcf955c68603a4d736d37fa29870d8f43395e","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Kibana Management","Team:Kibana Management","backport:version","v9.4.0","v9.3.1"],"title":"[index mgmt] Use esql instead of query dsl to get the index count","number":252422,"url":"https://github.com/elastic/kibana/pull/252422","mergeCommit":{"message":"[index mgmt] Use esql instead of query dsl to get the index count (#252422)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/252409\n\nIn some cases the index management index list doc count will show error\nif the combined length of indices exceeds 4096 bytes. Indices can have\nnames up to 255 chars so this problem could occur on a page size as\nsmall as 20.\n\nThe solution is to use ESQL instead of query dsl to get the index doc\ncounts since the index list gets passed as part of the query body\ninstead of as part of the url.\n\n### Release Notes\n\nFixes problem in 9.3.0 loading the doc count in index management when\nviewing larger page sizes with long index names.","sha":"611fcf955c68603a4d736d37fa29870d8f43395e"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/252422","number":252422,"mergeCommit":{"message":"[index mgmt] Use esql instead of query dsl to get the index count (#252422)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/252409\n\nIn some cases the index management index list doc count will show error\nif the combined length of indices exceeds 4096 bytes. Indices can have\nnames up to 255 chars so this problem could occur on a page size as\nsmall as 20.\n\nThe solution is to use ESQL instead of query dsl to get the index doc\ncounts since the index list gets passed as part of the query body\ninstead of as part of the url.\n\n### Release Notes\n\nFixes problem in 9.3.0 loading the doc count in index management when\nviewing larger page sizes with long index names.","sha":"611fcf955c68603a4d736d37fa29870d8f43395e"}},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Matthew Kime <matt@mattki.me>
mbondyra
added a commit
to mbondyra/kibana
that referenced
this pull request
Feb 10, 2026
* commit '7dcc1fe3c205d2de0c3ca3f65804f21de09013c3': (285 commits) Enrich kbn-check-saved-objects-cli README with CI and manual usage docs (elastic#252557) [Discover] Add feature flag to make ESQL the default query mode (elastic#252268) Add maskProps.headerZindexLocation above to inspect component flyout (elastic#252543) [Security Solution][Atack/Alerts] Flyout header: Assignees (elastic#252190) Upgrade EUI to v112.3.0 (elastic#252315) [Fleet] Make save_knowledge_base async in streaming state machine (elastic#252328) Upgrade @smithy/config-resolver 4.3.0 → 4.4.6 (elastic#252457) [Lens as API] Add colorMapping support for XY charts (ES|QL data layers) (elastic#252051) [WorkplaceAI] Add Google Drive data source and connector (elastic#250677) [Scout] Move GlobalSearch FTR tests to Scout (elastic#252201) [EDR Workflows] Fix osquery pack results display when agent clock is skewed (elastic#251417) [Observability Onboarding] Apply integrations limit after dedup in parseIntegrationsTSV (elastic#252486) [Entity Analytics] Update `host.ip` aggregation to remove painless script (elastic#252426) Address `@elastic/eui/require-table-caption` lint violations across `@elastic/obs-presentation-team` files (elastic#251050) Consolidate JSON stringify dependencies (elastic#251890) [index mgmt] Use esql instead of query dsl to get the index count (elastic#252422) Add Usage API Plugin (elastic#252434) Cases All Templates page (elastic#250372) [Agent Builder] Default value for optional params in ESQL tools (elastic#238472) [Fleet] Add upgrade_details.metadata.reason to AgentResponseSchema (elastic#252485) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #252409
In some cases the index management index list doc count will show error if the combined length of indices exceeds 4096 bytes. Indices can have names up to 255 chars so this problem could occur on a page size as small as 20.
The solution is to use ESQL instead of query dsl to get the index doc counts since the index list gets passed as part of the query body instead of as part of the url.
Release Notes
Fixes problem in 9.3.0 loading the doc count in index management when viewing larger page sizes with long index names.