我的GCP日志太吵了。它们被liveness_check和readiness_check条目弄得乱七八糟。除了liveness_check和readiness_check之外,我需要什么查询来记录所有内容?截图:谢谢

发布于 2021-11-11 03:48:05
resource.type="gae_app“和(httpRequest.requestUrl="/readiness_check”或httpRequest.requestUrl="/liveness_check")
你能先检查一下查询吗?以上代码将在日志资源管理器中工作或不工作。
发布于 2021-11-11 10:31:08
由于@Genshiro的回答,我将以下内容保存为“无噪音”过滤器
httpRequest.requestUrl!="/readiness_check" AND
httpRequest.requestUrl!="/liveness_check" AND
httpRequest.requestUrl!="/nginx_metrics" AND
NOT textPayload:"Health checks:" AND
NOT jsonPayload.message:"This is a normal event of healthy VMs" AND
NOT jsonPayload.message:"Exporting failed. Will retry the request after interval." AND
NOT jsonPayload.message:"buffer flush took longer time than" AND
NOT jsonPayload.message:"detected rotation of" AND
NOT jsonPayload.message:"following tail of"请注意,用于构造这样一个过滤器的文档是这里。
https://stackoverflow.com/questions/69837657
复制相似问题