如何在 GCP Logs Explorer 中查看完整的错误消息?

发布于 2025-01-12 07:35:48 字数 265 浏览 2 评论 0 原文

在“日志资源管理器”中我可以看到很多错误,例如 输入图片description here

但是,当我单击任一行时,我只会得到很多信息但是我唯一关心的事情,即错误消息,并不在那里。

有没有一种方法可以让我实际看到特定错误的输出?

In the "Logs Explorer" I can see a lot of errors e.g
enter image description here

But when I click on either of the lines I just get a lot of information but the only thing I care about, the error message, is not there.

Is there a way where I can actually see the outputs of a specific error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

○愚か者の日 2025-01-19 07:35:48

当我访问 GCP 错误报告(或从主菜单)时,我获得了错误的详细信息操作 > 错误报告
您可以选择您的项目并查看错误的详细信息,包括错误消息和原始堆栈跟踪。

I got details for my error when I went to the GCP Error Reporting (or from the main menu Operations > Error Reporting)
You can choose your project and see details of your errors including the error message and a raw stack trace.

谁与争疯 2025-01-19 07:35:48

日志字段窗格根据查询编辑器中执行的查询进行填充和更新。

如果查询为空,日志字段窗格将按资源类型和严重性字段显示日志条目的计数。

要收集特定日志,您可以在日志浏览器中构建查询。

您将使用“查询”窗格,使用日志记录 查询表达式 rel="nofollow noreferrer">查询语言,您可以使用过滤菜单选择资源、日志名称、日志严重性和时间范围参数

您可以在此公共文档中查看有关这些过滤器的详细信息。如果您想在一段时间内从 App Engine 获取“ERRORlines”,则可以根据此信息运行查询来搜索错误,如下例所示:

resource.type="gae_app" AND
severity>=ERROR AND
timestamp>="2018-12-31T00:00:00Z" AND timestamp<="2019-01-01T00:00:00Z"

The Log fields pane is populated and updated based on an executed query in the query editor.

If the query is empty, the Log fields pane displays the counts of log entries by the Resource type and Severity fields.

To gather specific logs, you can build queries in the Logs Explorer.

You will use the Query pane, to build and run query expressions using the logging query language, and you can use the filter menus to select resources, Log names, log severities, and time range parameters.

You can review the details about these filters in this public document. Based on this information, you can run a query to search an error like the followed example, if you want get The "ERROR lines" from App Engine during a period:

resource.type="gae_app" AND
severity>=ERROR AND
timestamp>="2018-12-31T00:00:00Z" AND timestamp<="2019-01-01T00:00:00Z"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文