search_alerts
Search the Wazuh alerts index to retrieve compact raw event samples, filtered by time, agent, rule, level, or Lucene query for daily triage.
Instructions
Search the alerts index; returns compact events (max 25). Use it to look at raw samples.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End: ISO-8601 or now. Default now | |
| env | No | environment id (list_environments) | |
| from | No | Start: ISO-8601 or OpenSearch date math (now-24h). Default now-24h | |
| size | No | ||
| agent | No | Agent name (agent.name) filter | |
| query | No | Optional Lucene query_string, e.g. data.srcip:192.0.2.10 AND rule.groups:sshd | |
| rule_ids | No | Rule ID filter | |
| min_level | No | Minimum rule.level | |
| oldest_first | No |