Skip to content

[8.19] [Rules] KQL-to-DSL conversion without data view produces incorrect queries for keyword fields for Metric threshold rule (#260046)#261028

Merged
ana-davydova merged 2 commits intoelastic:8.19from
ana-davydova:backport/8.19/pr-260046
Apr 6, 2026
Merged

Conversation

@ana-davydova
Copy link
Copy Markdown
Contributor

…eries for keyword fields for Metric threshold rule (elastic#260046)

**Release Notes**
Introduced a fix for metric threshold rule with custom evaluation where
wildcard filters were not rendering any results to trigger alerts.

**Summary**
This PR resolves an issue with metric threshold rule evaluation where a
data view is not passed to rule evaluation functions, resulting in a
failure to successfully create a wildcard query filter and rule
execution with alerts firing as expected.

Resolves elastic#257282

<img width="1246" height="641" alt="image"
src="https://github.com/user-attachments/assets/9702c322-8bf3-4143-b897-e2afb1c01b59"
/>
@github-actions github-actions bot added the author:actionable-obs PRs authored by the actionable obs team label Apr 2, 2026
@ana-davydova ana-davydova added backport This PR is a backport of another PR release_note:skip Skip the PR/issue when compiling release notes author:actionable-obs PRs authored by the actionable obs team and removed author:actionable-obs PRs authored by the actionable obs team labels Apr 2, 2026
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Apr 2, 2026

Approvability

Verdict: Needs human review

This bug fix changes how KQL wildcard queries are converted to Elasticsearch DSL for keyword fields in Metric threshold rules, which affects alerting behavior at runtime. Additionally, the author does not own any of the modified files (all owned by @kibanamachine), warranting review by the designated code owners.

You can customize Macroscope's approvability policy. Learn more.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@ana-davydova ana-davydova removed the request for review from kibanamachine April 6, 2026 12:13
@ana-davydova ana-davydova merged commit 84d865c into elastic:8.19 Apr 6, 2026
14 checks passed
@ana-davydova ana-davydova deleted the backport/8.19/pr-260046 branch April 6, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:actionable-obs PRs authored by the actionable obs team backport This PR is a backport of another PR release_note:skip Skip the PR/issue when compiling release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants