Tom*_*mmy 5 google-cloud-platform google-stackdriver
我想在 Google StackDriver 日志过滤器中使用通配符。但是,根据官方网站,过滤器无法使用它。有什么方法可以使用吗?
小智 8
如果要搜索文本中包含的字符串,只需直接键入该字符串即可。
Unicorn (text:Unicorn)
Finds all log entries containing unicorn, in any field and in any letter case.
Run Code Online (Sandbox Code Playgroud)
如果要在高级过滤器中添加条件以在所有以“前缀”开头的 pod 中进行搜索,请尝试如下操作(note ':' instead of '=')
:
resource.type="k8s_container"
resource.labels.cluster_name="cluster-1"
resource.labels.pod_name:"prefix"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
8455 次 |
最近记录: |