get_recent_errors
Fetch recent GCP log entries at severity ERROR or higher, filterable by service, hours, environment, and limit, to quickly identify failures during incident investigation.
Instructions
Return recent log entries at severity ERROR or higher.
Args: service: Optional service name to narrow to (matched against resource.labels.service_name and logName). hours: How many hours back to search. Default 1. limit: Maximum number of entries to return (newest first). environment: Which configured GCP environment to query, e.g. 'staging' or 'production'. Omit to use the default environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| limit | No | ||
| service | No | ||
| environment | No |