在 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)
但不起作用