gcloud logging read 'resource.type="cloud_run_revision" AND resource.labels.service_name="web-app"' --limit 50
Read Cloud Run logs with a filter
Queries Cloud Logging for the last 50 entries from web-app's revisions, filtering on the resource type cloud_run_revision. Filters use the Logging query language, so add AND severity>=ERROR for failures only. Stream live entries instead with gcloud logging tail.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.