Difference between revisions of "Gcloud logging read"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
  
 
container.name
 
container.name
gcloud logging read "resource.labels.container_name=[[elasticsearch]]"
+
:<code>gcloud logging read "resource.labels.container_name=[[elasticsearch]]"</code>
  
 
pod.name
 
pod.name
Line 26: Line 26:
  
 
  [[gcloud logging logs list]]
 
  [[gcloud logging logs list]]
[[gcloud logging logs list]] | grep kube
+
 
 +
 
 +
{{gloud logging logs list kubernetes}}
  
 
== Errors ==
 
== Errors ==

Revision as of 13:46, 22 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
projects/your-project/logs/kube-container-runtime-monitor
projects/your-project/logs/kube-node-configuration
projects/your-project/logs/kube-node-installation
projects/your-project/logs/kube-proxy
projects/your-project/logs/kubelet
projects/your-project/logs/kubelet-monitor

Errors

gcloud logging read "resource.type=global"
ERROR: (gcloud.logging.read) PERMISSION_DENIED: The caller does not have permission
helm get all

Related

See also

Advertising: