Difference between revisions of "Gcloud logging read"
Jump to navigation
Jump to search
Line 38: | Line 38: | ||
* <code>[[resource.labels.container_name]]</code> | * <code>[[resource.labels.container_name]]</code> | ||
* <code>textPayload=~".*your-text-to-be-included.*"</code> | * <code>textPayload=~".*your-text-to-be-included.*"</code> | ||
− | + | * <code>[[gcloud app logs read]]</code> | |
− | |||
== See also == | == See also == |
Revision as of 10:25, 8 November 2022
gcloud logging read
--freshness 90d
gcloud logging read "resource.labels.container_name=YourContainerName" gcloud logging read "resource.labels.pod_name=YourPodsName"
container.name
gcloud logging read "resource.labels.container_name=elasticsearch"
pod.name
gcloud logging read "resource.labels.pod_name=elasticsearch-master-0" gcloud logging read "resource.labels.pod_name=elasticsearch-master-0 OR resource.labels.pod_name=elasticsearch-master-1"
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 helm get all
Related
kubectl get events
- GCP log explorer
resource.labels.container_name
textPayload=~".*your-text-to-be-included.*"
gcloud app logs read
See also
gcloud logging [ write | sinks | read | logs list ]
Advertising: