ES|QL query patterns for rules in the experimental alerting system
The following pages cover ES|QL query patterns for rules in the experimental alerting system, ordered from the simplest starting point to advanced use cases. Start with Your first rule query if you're new, or jump to the pattern you need.
| Pattern | What it solves | Complexity |
|---|---|---|
| Your first rule query | Alert on any individual event that matches a condition. No aggregation needed. | Beginner |
| Threshold queries | Alert when a metric crosses a limit. Covers single-series and grouped (per-host, per-service) rules. | Beginner |
| No-data detection | Alert when a specific host or data source stops reporting. | Intermediate |
| SLO burn rate | Alert when error budget consumption exceeds safe rates across multiple time windows. | Advanced |
| Persistent breach detection | Alert when a condition has been continuously true across consecutive time buckets. | Advanced |