opencdr_logs_search
Search audit and CloudTrail logs by service, event ID, or event name using exactly one selector; read-only, paginated results for incident investigation.
Instructions
Search audit/CloudTrail logs. Read-only.
Provide exactly ONE selector: service, event_id, or event_name (the backend serves each from a dedicated index and cannot AND-combine them). date_from/date_to (YYYY-MM-DD, UTC, inclusive, max 31-day range) apply ONLY to the service selector and default to the last 7 days; they are ignored for event_id/event_name. Paginated via next_token.
Correlating by source_ip / principal / access_key_id / user_agent / resource / account is not yet supported by the backend -- use event_id to pivot on a specific event.
In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset.
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": "opencdr_logs_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| order | No | desc | |
| date_to | No | ||
| service | No | ||
| agent_id | No | ||
| event_id | No | ||
| date_from | No | ||
| event_name | No | ||
| next_token | No |