Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.6] [ML] Explain Log Rate Spikes: Fix mini histograms for groups wi…
…th multiples values per field. (#147597) (#147865) # Backport This will backport the following commits from `main` to `8.6`: - [[ML] Explain Log Rate Spikes: Fix mini histograms for groups with multiples values per field. (#147597)](#147597) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Walter Rafelsberger","email":"walter.rafelsberger@elastic.co"},"sourceCommit":{"committedDate":"2022-12-20T15:31:12Z","message":"[ML] Explain Log Rate Spikes: Fix mini histograms for groups with multiples values per field. (#147597)\n\nFor groups that have multiple values for the same field, the group\r\nhistogram query wasn't able to fetch data because it filters with a bool\r\n`must` and individual `term` aggregations. This PR fixes it by using a\r\n`terms` aggregation if there are multiple values for a field so just\r\nthese get treated as `OR`.","sha":"3a48b7a84e587f0d5b9bffef0abecbce9c62e2e6","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix",":ml","Feature:ML/AIOps","v8.6.0","v8.7.0"],"number":147597,"url":"#147597 Explain Log Rate Spikes: Fix mini histograms for groups with multiples values per field. (#147597)\n\nFor groups that have multiple values for the same field, the group\r\nhistogram query wasn't able to fetch data because it filters with a bool\r\n`must` and individual `term` aggregations. This PR fixes it by using a\r\n`terms` aggregation if there are multiple values for a field so just\r\nthese get treated as `OR`.","sha":"3a48b7a84e587f0d5b9bffef0abecbce9c62e2e6"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"#147597 Explain Log Rate Spikes: Fix mini histograms for groups with multiples values per field. (#147597)\n\nFor groups that have multiple values for the same field, the group\r\nhistogram query wasn't able to fetch data because it filters with a bool\r\n`must` and individual `term` aggregations. This PR fixes it by using a\r\n`terms` aggregation if there are multiple values for a field so just\r\nthese get treated as `OR`.","sha":"3a48b7a84e587f0d5b9bffef0abecbce9c62e2e6"}}]}] BACKPORT--> Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
- Loading branch information