← Debugging384 / 640
hardgcloud

Query Cloud Logging for Kubernetes container logs from a GKE cluster

command

gcloud logging read "resource.type=k8s_container" --limit 50

also accepted

gcloud logging read "resource.type=k8s_container"gcloud logging read

Command breakdown

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

gcloudloggingread"resource.type=k8s_container"--limit50
FlagPurpose
--limitBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →