← Debugging383 / 640
hardgcloud

Read error and critical log entries from the past hour across all services

command

gcloud logging read "severity>=ERROR" --freshness 1h --limit 50

also accepted

gcloud logging read "severity>=ERROR"gcloud logging read

Command breakdown

Part of the Google Cloud CLI (gcloud) — Debugging category.

gcloudloggingread"severity>=ERROR"--freshness1h--limit50
FlagPurpose
--freshnessBoolean flag
--limitBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →