query_logs
Query Cloud Logging with advanced filters to retrieve log entries for incident investigation and analysis. Use severity, resource type, and time windows to pinpoint relevant logs.
Instructions
Query Cloud Logging with an advanced-filter expression.
Args: filter: Cloud Logging advanced filter (e.g. 'severity>=WARNING AND resource.type="cloud_run_revision"'). Leave empty to match all logs. freshness: How far back to look, e.g. '30m', '1h', '2d'. Default '1h'. 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. Call list_environments to see what is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| filter | No | ||
| freshness | No | 1h | |
| environment | No |