Search Events
search_eventsQuery the Wazuh events data stream on the indexer to retrieve and filter security events by OpenSearch query string and optional agent ID, with pagination for manageable results.
Instructions
Search the wazuh-events-v5 data stream on the indexer.
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_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, from 1 to 100 | |
| query | No | OpenSearch query_string. Empty matches all events. | |
| offset | No | Result offset, from 0 to 10000 | |
| agent_id | No | Optional agent id filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |