简体   繁体   English

如何使用错误报告在 BigQuery 中加入 Google App Engine 的日志记录表

[英]How to join Google App Engine's logging table in BigQuery with Error Reporting

Google App Engine (GAE) creates a table for each day of logging with lines containing several logs information, such as "status" (eg: 500 , 404 ), etc. Google App Engine (GAE) 为每天的日志记录创建一个表,其中包含多个日志信息,例如“状态”(例如: 500404

Yet, this table does not contain the Resolution Status for the errors in Error Reporting.但是,此表不包含错误报告中错误的解决状态。 Eg:例如:

在此处输入图像描述

At the moment, I would like to get how many "Acknowledged" errors happen per day.目前,我想知道每天发生多少“已确认”错误。 I can get which errors happen per day through the appengine_googleapis_com_request_log_* (eg: appengine_googleapis_com_request_log_20211130 ).我可以通过appengine_googleapis_com_request_log_*了解每天发生的错误(例如: appengine_googleapis_com_request_log_20211130 )。 However, I don't know how can I get if the error is Acknowledged or Open .但是,我不知道如果错误是AcknowledgedOpen我怎么能得到。

Does anyone know how can I combine those information, or at least if Error Reporting saves its information in any BigQuery table?有谁知道我如何组合这些信息,或者至少如果错误报告将其信息保存在任何 BigQuery 表中?

Reviewing Google documentation to help with your question, apparently, it is impossible to get the resolution status.查看 Google 文档以帮助您解决问题,显然,不可能获得解决状态。

You can view your errors on the Error Reporting page of your GCP Console, which displays a list of all errors in the order of frequency.您可以在 GCP Console 的错误报告页面上查看错误,该页面会按频率顺序显示所有错误的列表。 Errors with the same root cause are grouped together.具有相同根本原因的错误被归为一组。 The error reporting list provides the following information for all reported errors:错误报告列表为所有报告的错误提供以下信息:

  • Resolution status分辨率状态
  • Occurrences出现次数
  • Users用户
  • Error错误
  • Seen in见于
  • First seen第一次见到
  • Last seen最后一次露面
  • Response code响应代码

In case you would like to have more information, you can review the viewing error documentation.如果您想了解更多信息,可以查看查看错误文档。

Now, as I said, there is no way to get the resolution status;现在,正如我所说,没有办法获得解决状态; however, what you can try to do is a feature request.但是,您可以尝试做的是功能请求。

Here is some documentation that shows what you can get with the API, it could help you with the feature request.以下是一些文档,展示了您可以使用 API 获得什么,它可以帮助您处理功能请求。

Additionally, here is a link I found regarding the Error Processing and Log Monitoring documentation using GCP.此外,这是我找到的关于使用 GCP 的错误处理和日志监控文档的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM