Difference between revisions of "Gcloud logging read"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
  [[gcloud logging]] read "resource.type=global"
+
  gcloud logging read "[[resource.labels.container_name]]=YourContainerName"
  ERROR: (gcloud.logging.read) PERMISSION_DENIED: The caller does not have permission
+
  gcloud logging read "[[resource.type]]=k8s_container AND [[resource.labels.container_name]]=YourContainerName"
 +
 
  
 
  [[gcloud logging read projects/your-project/logs/kubelet]]
 
  [[gcloud logging read projects/your-project/logs/kubelet]]
Line 10: Line 11:
 
  [[gcloud logging logs list]]
 
  [[gcloud logging logs list]]
 
  [[gcloud logging logs list]] | grep kube
 
  [[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 ==
 
== Related ==

Revision as of 06:54, 3 November 2022

gcloud logging read "resource.labels.container_name=YourContainerName"
gcloud logging read "resource.type=k8s_container AND resource.labels.container_name=YourContainerName"


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

Advertising: