I am currently trying to log errors in the Stackdriver Error Reporting from the Google Container Engine. I use the built-in Fluentd-based Stackdriver registration agent from GKE, which works great. However, when I log an error according to the specification ( https://cloud.google.com/error-reporting/docs/formatting-error-messages ), I do not see it in the Stackdriver error report
The payload that I see in the Stackdriver entry is
{ insertId: "xatjb4fltv246" jsonPayload: { stream: "event" message: "path was incorrect" environment: "production" event_type: "RAILS_ERROR" context: { path: "/2", reportLocation: { functionName: "foo" filePath: "/something.js" lineNumber: 3 } request_id: "3149e5c4-3192-4a9c-a123-b4dedf5a9e07" } timestamp: 1492205840 serviceContext: { service: "nambrotdotcom" } } resource: {…} timestamp: "2017-04-14T21:37:20Z" severity: "INFO" labels: {…} logName: "projects/nambrotdotcom/logs/web" }
If I understood correctly, should this be good?
EDIT:
I logged a manual error according to the problems page and it worked fine. The only difference I see between the error that I manually registered and the payload that I registered from GKE is that the log name and labels are different, but should this not be a factor?
source share