Search logs
search_logsSearch the project's logs, newest first. Logs search language (not SQL): free words are ANDed (whole words), "exact phrase", -word to exclude, service:api, host:web-1, env:prod, source:src_…, level:error or level:>=warn, attr.:value, trace:, pattern:, word* for a prefix. OR is not supported. Returns up to limit lines and a next_cursor for older ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End. Default now. | |
| from | No | Start. Default 1h ago. ISO 8601, epoch ms, or relative (15m, 1h, 24h, 7d). Window at most 7 days, within the last 30 days. | |
| limit | No | Lines to return. Default 50, max 200. | |
| query | No | Search, e.g. `level:error service:api timeout`. Empty = every line. | |
| cursor | No | next_cursor of a previous call, for older lines. |