在 StackDriver 日志查看器中,有一种方法可以查询不包含特定字符串的条目
In StackDriver logging viewer is there a way to query for entries that DO NOT contain a specific string
我的问题是关于 https://console.cloud.google.com/logs/viewer All the examples here 处的日志查看器的问题,该日志查看器展示了如何搜索文本的存在而非缺失。
我想使用此功能搜索不包含 "Request was aborted after waiting too long to attempt to service your request."
的错误
您可以使用支持 NOT
布尔运算符的 Advanced Logs Filters:
Boolean expressions
expression =
["NOT" | "-"] comparison {["AND" | "OR"] ["NOT" | "-"] comparison}
来自Introduction:
To use advanced filters in the Logs Viewer, select the drop-down menu
at the end of the search bar, and choose Convert to advanced
filter. You see the advanced filter interface pictured below:
在您的情况下,将以下行添加到切换到高级过滤器时默认填写的行:
NOT "Request was aborted after waiting too long to attempt to service your request."
我的问题是关于 https://console.cloud.google.com/logs/viewer All the examples here 处的日志查看器的问题,该日志查看器展示了如何搜索文本的存在而非缺失。
我想使用此功能搜索不包含 "Request was aborted after waiting too long to attempt to service your request."
的错误您可以使用支持 NOT
布尔运算符的 Advanced Logs Filters:
Boolean expressions
expression = ["NOT" | "-"] comparison {["AND" | "OR"] ["NOT" | "-"] comparison}
来自Introduction:
To use advanced filters in the Logs Viewer, select the drop-down menu at the end of the search bar, and choose Convert to advanced filter. You see the advanced filter interface pictured below:
在您的情况下,将以下行添加到切换到高级过滤器时默认填写的行:
NOT "Request was aborted after waiting too long to attempt to service your request."