【发布时间】:2016-04-22 21:13:42
【问题描述】:
我无法让Error Reporting 处理我在 GCE 实例中运行的 php 应用程序报告的错误。
我已按照documentation 为我的 GCE 实例设置 Google 错误报告。
我已确认消息正在使用required format 记录到日志页面。
这是 GCP 的 Logging 部分中显示的错误之一
{
metadata: {
severity: "ERROR",
projectId: <project_id>,
serviceName: "compute.googleapis.com",
zone: "us-central1-b",
labels: {
compute.googleapis.com/resource_name: <resource_name>,
compute.googleapis.com/resource_type: "instance",
compute.googleapis.com/resource_id: <resource_id>
},
timestamp: "2016-04-22T20:20:44.000Z",
projectNumber: <project_number>,
},
insertId: <instert_id>,
log: "alberta.errors",
structPayload: {
context: {
reportLocation: {
filePath: <path>,
lineNumber: 22,
}
},
serviceContext: {
service: "alberta"
},
message: "SQLSTATE[08006] [7] FATAL: password authentication failed ..."
}
}
我不知道从哪里开始,因为我已经用尽了可用的文档,也找不到遇到类似问题的人。
任何建议将不胜感激。
【问题讨论】:
标签: php google-compute-engine google-cloud-platform