简体   繁体   English

在 GCP Logging 中需要 GKE 部署失败日志

[英]Need GKE Deployment Failed Logs in GCP Logging

we need to get k8S Deployment Failed logs using GCP Logging Query我们需要使用 GCP 日志查询获取 k8S 部署失败日志

Tried Below GCP logging Query but not sure how to get failed Deployment logs using this在 GCP 日志记录查询下面尝试过,但不确定如何使用此获取失败的部署日志

resource.type="k8s_cluster" AND log_id("cloudaudit.googleapis.com/activity") AND protoPayload.methodName:"deployments"

could be please try the below and see if this will help you可能是请尝试以下操作,看看是否对您有帮助

resource.type="k8s_cluster" AND log_id("cloudaudit.googleapis.com/activity") AND protoPayload.methodName:"deployments" AND protoPayload.response.status.code = "FAILED"

This query will search for log entries in GCP related to Kubernetes clusters that have failed deployments.Let me know if you were looking for something else.此查询将在 GCP 中搜索与部署失败的 Kubernetes 集群相关的日志条目。如果您正在寻找其他内容,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM