Alert Rules
An alert rule watches for events of a specific type and, when its conditions match, tags the event with a priority and notifies you if you've asked it to. This is how AI Agent Watch turns a stream of raw events into "this is worth your attention."
How a rule is built¶
Each rule has:
- A name
- A single event type it applies to (for example
pii_detection,tool_executed,net_connect_started) - see Captured Events for the full list - One or more conditions, all of which must match (AND logic) for the rule to match an event
- A priority - Info, Medium, High, or Critical - applied to any event the rule matches
- A disabled rule is skipped entirely: it's never evaluated against incoming events, so it won't assign a priority or risk score to anything
A condition compares one field of the event against a value, using an operator: =, !=, in, contains, starts with, ends with, >, >=, <, <=. in and contains accept a comma-separated list of values, matching if any one of them applies. The available fields and valid operators depend on the event type the rule is scoped to.

How matching works¶
An event can match more than one rule. When that happens, the highest-priority match wins - that's the priority and risk score recorded on the event - but every rule that matched is recorded, so you can still see all of them. An event that matches no rule is left at Info priority with no risk score. See Risk Scores & Priorities for how this feeds into scoring.
Notifications¶
A rule only sends a notification if it's enabled, has notifications turned on, and has at least one recipient (email addresses and/or a notification hook) configured. Notifications can be restricted to a schedule (specific days/time windows) and are throttled so a rule that keeps matching doesn't send a new alert every time - see Alert Notification Hooks for the supported delivery channels.
Default rules¶
Enabling AI Agent Watch seeds your account with a set of default rules covering common risk patterns, including:
- New, untrusted agent detected (To be notified the moment an unrecognized agent shows up)
- Connection to an untrusted host (disabled by default)
- Connection to a suspicious port (for example 22, 1080, 4444, 8080, 9200)
- High outbound data volume in a session
- File writes/reads under sensitive system paths
- Access to
.envfiles or private-key files - PII detected for the most sensitive default categories (Credentials, AWS Key, SSN)
- Shell command execution, and credential-looking strings passed on a command line
- A session's overall risk score crossing a critical threshold
Open AI Agent Watch → Event Alerting → Alert Rules to review the defaults, edit their conditions, enable or disable rules, or create your own. Configure recipients and notification schedules for the rules you want to hear about.

Governance events¶
Alert rules can match exec_denied, file_access_denied, and net_denied events emitted when a governance policy blocks an operation. Governance policies enforce restrictions on the host; alert rules assign event priorities and send notifications. Disabling notifications does not disable enforcement. See Governance Policies for configuration.
Cost alerts¶
Cost alerts help you spot unexpected spending, reduced cache reuse, and model calls whose costs cannot be calculated.
Default cost alerts¶
AI Agent Watch includes the following default cost alert rules:
| Default rule | What it helps you catch |
|---|---|
| Automatic - Unknown Model Detected | Lets you know an agent is using a model whose pricing is missing, so you know that spending is not included in your cost totals. |
| Automatic - Unrecognized Service Tier Detected | Flags a service tier Sematext does not recognize, so you can investigate why its usage has no calculated cost. |
| Automatic - Unsupported Billing Mode Detected | Highlights usage billed through arrangements such as reserved capacity, where token-based calculations cannot represent the cost. |
| Automatic - Provider Cost Spike | Draws your attention to an unusual increase in spending with a provider, so you can investigate what is driving it. |
| Automatic - Agent Cost Spike | Helps you find an agent spending more than usual and investigate its sessions, model choices, and token usage. |
| Automatic - Cache Hit Rate Drop | Warns you when an agent is reusing less cached input, which can make its model requests more expensive. |
Open AI Agent Watch → Event Alerting → Cost Alerts to review the defaults, adjust their conditions, or create your own rules.