Search logs
search_logsFind message and exception text across all ingested log entries using case-insensitive substring matching or regular expressions, with optional filters for level, source, and time range.
Instructions
Search message and exception text across all ingested entries. Case-insensitive substring match by default, or a regular expression.
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": {
"query": "<query>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter by log level | |
| limit | No | Max results to return (default 50) | |
| query | Yes | Search term or regular expression | |
| regex | No | Interpret query as a regular expression (default false) | |
| source | No | Only include entries whose source name contains this text | |
| endDate | No | End of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z) | |
| startDate | No | Start of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z) | |
| fingerprint | No | Restrict to entries with this fingerprint |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| total | Yes | Total matches before applying limit | |
| entries | Yes | ||
| returned | Yes |