Google云记录中使用的查询语言是什么? 它似乎不是以lucene为基础的? 例如,下面是一个查询
metadata.serviceName="appengine.googleapis.com"
metadata.labels."appengine.googleapis.com/module_id"="..."
metadata.labels."appengine.googleapis.com/version_id"=",,,"
log="appengine.googleapis.com/stdout"
(error OR completed)
答案 0 :(得分:0)
Google似乎正在使用自己的自定义语言进行Stackdriver过滤。
语法定义如下所示:
expression = ["NOT"] comparison { ("AND" | "OR") ["NOT"] comparison }
comparison = name OP value
| value
OP = "<=" | "<" | ">=" | ">" | "!=" | "=" | ":"
value = number
| string
| function
| "(" expression ")"
您可以在此处找到其余的语法定义:
https://cloud.google.com/logging/docs/view/advanced_filters#advanced_filter_syntax