【发布时间】:2018-05-20 02:48:39
【问题描述】:
在 Google Stackdriver 高级过滤器中,我可以插入如下内容:
resource.type="container"
resource.labels.cluster_name="mycluster"
textPayload!="Metric stackdriver_sink_successfully_sent_entry_count was not found in the cache."
severity="INFO"
textPayload:(helloworld)
最后一条规则意味着字段 textPayload 应该包含字符串 helloworld。 但我无法找到添加 NOT 运算符的方法。
我会使用类似的东西:
textPayload:!(helloworld)
但不起作用
【问题讨论】:
标签: logging string-comparison google-cloud-stackdriver