search_logs
Filter and analyze Cloudflare Workers logs by date, environment, status codes, script names, and search text to identify issues and monitor performance.
Instructions
Search logs with filters.
Args: date: Date in YYYYMMDD format. environment: Environment (production or staging). script_name: Filter by worker script name. status_code: Filter by exact HTTP status code. status_gte: Filter by status code >= value (e.g., 400 for errors). status_lt: Filter by status code < value. outcome: Filter by outcome ("ok" or "exception"). search_text: Search in URL and log messages. limit: Maximum entries to return (default 50).
Returns: Dict with matching entries and count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| environment | No | production | |
| script_name | No | ||
| status_code | No | ||
| status_gte | No | ||
| status_lt | No | ||
| outcome | No | ||
| search_text | No | ||
| limit | No |