Difference between revisions of "Gcloud logging read"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | <code>[[gcloud logging]] read</code> | |
* https://cloud.google.com/sdk/gcloud/reference/logging/read | * https://cloud.google.com/sdk/gcloud/reference/logging/read | ||
Revision as of 09:10, 4 November 2022
gcloud logging read
--freshness 90d
gcloud logging read "resource.labels.container_name=YourContainerName" gcloud logging read "resource.labels.pod_name=YourPodsName"
gcloud logging read "resource.labels.container_name=elasticsearch" gcloud logging read "resource.labels.pod_name=elasticsearch-master-0"
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
See also
gcloud logging [ write | sinks | read | logs list ]
Advertising: