"version": "1.0",
"subject"
: string, description of the new or reopened error group. "group_info": {
"project_id"
: string, project that owns the error group. "detail_link"
: string, link to the Error Reporting Details page for the error group. },
"exception_info": {
"type"
: string, type of the exception logged in the event. "message"
: string, exception message for the event. },
"event_info": {
"log_message"
: string "request_method"
: string "request_url"
: string "referrer"
: string "user_agent"
: string "service"
: string "version"
: string "response_status"
: string },
}
In addition to the webhook request sent by Cloud Monitoring, basic authentication utilizes the HTTP specification for the username and password. Cloud Monitoring requires your server to return a 401 response with the proper WWW-Authenticate
header. For more information about basic authentication, see the following:
Token Authentication requires a query string parameter in the endpoint URL and a key that the server expects to be secret between itself and Monitoring. The following is a sample URL that includes a token:
https://www.myserver.com/stackdriver-hook?auth_token=1234-abcd
If Monitoring posts an incident to the endpoint URL, your server can validate the attached token. This method of authentication is most effective when used with SSL/TLS to encrypt the HTTP request preventing snoopers from learning the token.
For an example server in Python, see this sample server.
To edit or delete a notification channel by using the Google Cloud console, do the following:
In the Google Cloud console, go to the notifications Alerting page:
If you use the search bar to find this page, then select the result whose subheading is Monitoring.
Click Edit notification channels.
The Notification channels dashboard contains a section for each type of notification channel. Each section lists all configurations for that type:
To select an existing notification channel, you must have one of the following roles:
To select where you want to send notifications when new error groups occur, complete the following steps.
In the Google Cloud console, go to the Error Reporting page:
You can also find this page by using the search bar.
Click Configure notifications to open the Error notifications page.
In the Notification channels drop-down menu, select the channels that you want to send the notifications to.
If you don't see the channel you need, click Manage notification channels to create a new channel. To create a notification channel, your role must be one those listed in Creating channels.
After selecting the channels, click Save.
Following is additional information that applies when creating and managing notifications in Error Reporting.
Notifications for error groups contain information related to the log entries in the group. The included information depends on the type of monitored resource in which the error occurred. For example, some notifications might contain the name and version of the monitored resource.
The error message is included in the notification only when the error group is identified by the log entries in a log bucket whose region is global
.
Error Reporting sends a notification in two scenarios:
Resolved
.To receive future notifications for the error group, you must set the error group status to Resolved
. No other actions, like using the API to delete the error group or waiting for the data to age out, result in a notification if another error occurs.
Error Reporting uses the following rules to limit the number of notifications you might receive due to errors:
At most 5 notifications due to an error can be sent in a 60-minute window.
If more than 5 errors occur in a 60-minute window, then the following occurs:
You receive a notification that further notifications are silenced for the next six hours.
A log entry with the severity level of the warning is written.
When you resolve an error group, notifications for that error group are suspended for five minutes.
If an error with a resolution status of Resolved reoccurs, even if it has been previously deleted, its resolution status changes back to Open and Error Reporting sends a notification.
Error Reporting won't send a notification if a Muted error reoccurs.
To manage the resolution status of your errors, go to Manage errors.
Error Reporting sends mobile notifications to the Google Cloud app on Android and iOS. To opt into mobile notifications, you must first install the app on your mobile device:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-17 UTC.