Difference between revisions of "Gcloud logging read"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
https://cloud.google.com/sdk/gcloud/reference/logging/read | https://cloud.google.com/sdk/gcloud/reference/logging/read | ||
+ | |||
+ | --freshness 7d | ||
gcloud logging read "[[resource.labels.container_name]]=YourContainerName" | gcloud logging read "[[resource.labels.container_name]]=YourContainerName" |
Revision as of 07:48, 3 November 2022
https://cloud.google.com/sdk/gcloud/reference/logging/read
--freshness 7d
gcloud logging read "resource.labels.container_name=YourContainerName" gcloud logging read "resource.type=k8s_container AND resource.labels.container_name=YourContainerName"
gcloud logging read "resource.labels.container_name=backup" | grep textPayload
gcloud logging read projects/your-project/logs/kubelet
gcloud logging read --help
gcloud logging logs list gcloud logging logs list | grep kube
Errors
gcloud logging read "resource.type=global" ERROR: (gcloud.logging.read) PERMISSION_DENIED: The caller does not have permission
Related
resource.labels.container_name
See also
gcloud logging [ write | sinks | read | logs list ]
Advertising: