search_logs
Retrieve a single compact page of matching DataSet/Scalyr log events by applying a tight filter; continue paging with a continuation token.
Instructions
Return a small page of matching DataSet/Scalyr log events as a compact fenced pipe table. Prefer count_logs or list_log_facets first, then a tight filter. One page per call; use continuation_token for the next page (never auto-paginated).
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": {
"filter": "<filter>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | DataSet query language filter (required). Use a field clause such as severity >= 5 or serverHost contains "api". Prefer tight filters after count_logs / list_log_facets. | |
| columns | No | Comma-separated columns (default timestamp,severity,serverHost,logfile,message) | |
| end_time | No | End time (default 0h) | |
| priority | No | low (default) or high | |
| max_count | No | Max events (default 25, hard max 50) | |
| page_mode | No | head or tail (default tail) | |
| start_time | No | Start time (default 15m) | |
| continuation_token | No | Opaque token from a previous page. Requires absolute start_time/end_time. |