Search Wazuh alerts
wazuh_search_alertsSearch Wazuh security alerts by severity, MITRE ID, agent, IP, or text over a custom time window, returning compact or full alert details.
Instructions
Search security alerts in the Wazuh Indexer over a time window. This is the main tool for questions like 'show me critical alerts in the last hour', 'what fired on server-db-01 yesterday', 'find SSH brute force attempts', or 'alerts matching MITRE T1110'. Returns a compact projection of each alert by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end. Defaults to now. | |
| text | No | Lucene query over alert text, e.g. 'failed password', 'rule.description:*sudo*', or 'data.srcport:22 AND NOT agent.id:000'. | |
| limit | No | Max alerts to return. | |
| start | No | Window start: relative like '24h', '7d', '30m', or ISO-8601 like '2026-08-01T00:00:00Z'. Defaults to 24 hours ago. | |
| offset | No | Paging offset. | |
| src_ip | No | Restrict to these source IPs. | |
| rule_id | No | Restrict to these rule IDs. | |
| agent_id | No | Restrict to these agent IDs. | |
| mitre_id | No | MITRE technique IDs, e.g. ['T1110']. | |
| severity | No | Severity band by rule level: critical=15+, high=12-14, medium=7-11, low=4-6, info=0-3. | |
| max_level | No | Maximum rule.level, inclusive. | |
| min_level | No | Minimum rule.level, inclusive. | |
| agent_name | No | Restrict to these agent names (exact). | |
| rule_group | No | Restrict to these rule groups, e.g. 'authentication_failed', 'web', 'syscheck', 'sca', 'vulnerability-detector'. | |
| full_documents | No | Return every field of each alert instead of the compact projection. Much larger output; use for deep inspection of a handful of alerts. | |
| sort_ascending | No | Oldest first instead of newest first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||