Overview
Logs alerts let you define rules that monitor log event volume and size across your infrastructure. When the count or byte volume of log events crosses a threshold you specify, Atatus opens an incident and notifies the channels attached to the alert policy. Every logs alert rule uses the Logs Metric rule type. Evaluation runs against thelogs.events_v3 ClickHouse table on a per-minute bucket.
Available metrics
Both metrics are queried from the
logs.events_v3 table.
Targets
Logs alert rules do not use project-level targets. Use filters and Group By to scope which log events the rule evaluates.Filters
Logs rules support two filtering mechanisms:ATQL filter strings
ThelogsFilters field accepts ATQL (Atatus Trace Query Language) filter strings. These are free-form query expressions that match against log event attributes.
Filter conditions
ThefilterConditions field accepts structured conditions with the following operators:
You can combine multiple filter conditions. All conditions must be satisfied for a log event to be included in the evaluation.
Group By
Group By is optional. When set, the rule splits evaluation by a log attribute such asservice, level, or host. Each distinct value of the grouped attribute is evaluated independently, and each value that violates the threshold creates a separate incident.
If Group By is omitted, all matching log events are aggregated into a single value for threshold comparison.
Evaluation logic
The alerting engine queries ClickHouse with a structure similar to:Examples
Log volume spike
Detect when total log ingestion exceeds a byte threshold, which may indicate a noisy deployment or a logging loop.
This rule evaluates log byte volume per service per minute bucket. If any single service produces more than 500 MB of logs in an evaluation window, an incident is opened for that service.
Error log frequency
Alert when a high number of error-level log events appear from a specific environment.
This rule counts log events where
level is error and environment is production, grouped by host. If any host exceeds 1,000 error log events in the evaluation window, an incident is created for that host.