Gcloud日志查看器-搜索子字符串过滤器不起作用

问题描述

根据documentation,在字段上使用:"string"搜索子字符串。

但是它不起作用,没有结果。这是我在https://console.cloud.google.com/logs

中使用的过滤器
resource.type="k8s_container"
resource.labels.namespace_name="default"
resource.labels.container_name="product"
jsonPayload.MESSAGE:"video"

我的操作方式有问题吗?

解决方法

您想改用jsonPayload.message,UI坚持要为MESSAGE提供补全功能,而在这种情况下是不存在的。