Rule type guides
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless Security
Generally available
Stack
Generally available
Elastic Security provides several rule types for building detections. Each rule type page covers when to use it, how to write effective queries, real-world examples, and field configuration specific to that type.
| What you want to detect | Rule type |
|---|---|
| Aggregated, transformed, or computed conditions | ES|QL |
| A known field value, pattern, or boolean condition | Custom query |
| An ordered sequence of events or a missing event | Event correlation (EQL) |
| Events matching a known threat indicator | Indicator match |
| A field value count exceeding a boundary | Threshold |
| Behavioral anomalies without a fixed pattern | Machine learning |
| A field value appearing for the first time | New terms |
Still unsure which rule type fits your use case? Refer to Choose the right rule type for a decision guide comparing all rule types.