search_logs
Search logs in Grail via DQL with filters by log level, host, content, and time range. Returns up to 1000 rows.
Instructions
Search logs in Grail via DQL. Builds a 'fetch logs' query with optional filters. For advanced needs use execute_dql.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contains | No | Substring to match in log content. | |
| loglevel | No | e.g. 'ERROR', 'WARN'. | |
| host | No | Host name to filter by (dt.host.name). | |
| from | No | DQL timeframe start expression, e.g. 'now()-1h' (default) or 'now()-24h'. | |
| limit | No | Max rows (default 100). |