search_logs
Search logs by stream and time range, applying an optional SQL WHERE clause to filter results. Returns newest entries first for fast troubleshooting.
Instructions
Search logs with an optional SQL WHERE clause, newest first
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stream": "<stream>",
"start_time": "<start_time>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return | |
| query | No | SQL WHERE clause without the WHERE keyword, e.g. "level='error'" | |
| stream | Yes | Stream name to search | |
| end_time | No | ISO timestamp. Defaults to now. | |
| start_time | Yes | ISO timestamp, or relative shorthand like '15m', '2h', '7d' |