Stay organized with collections
Save and categorize content based on your preferences.
Unified Maintenance generates logs through Cloud Logging. You can create alerts
and notifications based on different log conditions and through the supported
webhooks, or other notification channels.
Configure alert policies
Alert policies for planned maintenance are available through Cloud Logging.
You can get notified for any of the following conditions:
When new maintenance events are scheduled for resources that your projects use.
When the state of a maintenance event changes (for example, from SCHEDULED to
STARTED).
When there is a change to the scheduled start or end time of the maintenance.
When maintenance impacts resources in a specific location.
Notifications use log-based alerting policies. Once you have configured an alert
policy, you will receive a notification each time your conditions are met.
Alerts are subject to Cloud Monitoring limits.
Configure notification channels
Log alerts use notification channels,
which notify you, or your on-call team, when an alerting policy is triggered, and which
support a variety of integrations, such as:
Email
Pub/Sub
PagerDuty
Slack
SMS
Webhooks
Unified Maintenance works with Google Cloud Observability to configure third-party integrations.
For third-party integrations, use webhooks to send a notification to any public
endpoint such as ServiceNow, DataDog, or OpsGenie
or use Pub/Sub to send a notification to any private endpoint. You have
control over which logs are sent to these third-party tools through logging filters.
For more information about writing filters, see Logging query language.
You can create a logs-based alert to be notified whenever a log that matches a
provided filter is ingested. For more information, see Configure log-based alerting policies.
In the Google Cloud console, go to the Logs Explorer page:
Click Create log alert. Depending on the size of your window, this option
might appear in the Actions menu.
In the Create logs-based alert policy pane, provide an Alert Policy Name
and any Documentation that you would like included with the notification.
Click Next.
Optional: Choose a severity level for this policy.
Create an inclusion filter to determine which logs are included in the alert
by writing a query. For more information about writing queries, see
Logging query language.
The following example is an alert for any scheduled maintenance event associated
with any Cloud SQL resource:
Optional: Click Preview logs. If there are no resources that meet the
criteria defined, no preview is output.
Optional: Click Add a label to create labels from log fields (for example,
description) if you're integrating with a third-party tool such as Slack.
Click Next.
Optional: Configure the minimum Time between notifications and the
Incident autoclose duration. Click Next.
If you have configured a supported channel, you can select it from the
Notifications Channels list; otherwise, you can click Manage Notification
Channels and add a supported channel. For more information, see
Create and manage notification channels.
Click Save. Your log-based alert is now ready to test.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Configure alerts and notifications\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nUnified Maintenance generates logs through Cloud Logging. You can create alerts\nand notifications based on different log conditions and through the supported\nwebhooks, or other notification channels.\n\nConfigure alert policies\n------------------------\n\nAlert policies for planned maintenance are available through Cloud Logging.\nYou can get notified for any of the following conditions:\n\n- When new maintenance events are scheduled for resources that your projects use.\n- When the state of a maintenance event changes (for example, from `SCHEDULED` to `STARTED`).\n- When there is a change to the scheduled start or end time of the maintenance.\n- When maintenance impacts resources in a specific location.\n\nNotifications use log-based alerting policies. Once you have configured an alert\npolicy, you will receive a notification each time your conditions are met.\nAlerts are subject to [Cloud Monitoring limits](/monitoring/quotas#alerting_uptime_limits).\n\nConfigure notification channels\n-------------------------------\n\nLog alerts use [notification channels](/monitoring/support/notification-options),\nwhich notify you, or your on-call team, when an alerting policy is triggered, and which\nsupport a variety of integrations, such as:\n\n- Email\n- Pub/Sub\n- PagerDuty\n- Slack\n- SMS\n- Webhooks\n\nUnified Maintenance works with Google Cloud Observability to configure third-party integrations.\nFor third-party integrations, use webhooks to send a notification to any public\nendpoint such as [ServiceNow](https://docs.servicenow.com/bundle/xanadu-it-service-management/page/product/site-reliability-ops/task/sro-configure-google-cloud.html), DataDog, or OpsGenie\nor use Pub/Sub to send a notification to any private endpoint. You have\ncontrol over which logs are sent to these third-party tools through logging filters.\nFor more information about writing filters, see [Logging query language](/logging/docs/view/logging-query-language).\n\nTo learn more about webhooks, see [Create and manage notification channels](/monitoring/support/notification-options#webhooks) in the Google Cloud Observability documentation.\n\nConfigure notifications with Cloud Logging\n------------------------------------------\n\nYou can create a logs-based alert to be notified whenever a log that matches a\nprovided filter is ingested. For more information, see [Configure log-based alerting policies](/logging/docs/alerting/log-based-alerts).\n\n1. In the Google Cloud console, go to the **Logs Explorer** page: \n\n [Go to Logs Explorer](https://console.cloud.google.com/logs)\n2. Select your Google Cloud project.\n3. Click **Create log alert** . Depending on the size of your window, this option might appear in the **Actions** menu.\n4. In the Create logs-based alert policy pane, provide an **Alert Policy Name** and any **Documentation** that you would like included with the notification. Click **Next**.\n - Optional: Choose a severity level for this policy.\n5. Create an inclusion filter to determine which logs are included in the alert by writing a query. For more information about writing queries, see [Logging query language](/logging/docs/view/logging-query-language). The following example is an alert for any scheduled maintenance event associated with any Cloud SQL resource: \n\n ```sql\n log_id(\"maintenance.googleapis.com/maintenance_events\") AND jsonPayload.resource.type = \"sqladmin.googleapis.com/Instance\" AND jsonPayload.state = \"SCHEDULED\"\n ```\n6. Optional: Click **Preview logs**. If there are no resources that meet the criteria defined, no preview is output.\n7. Optional: Click **Add a label** to create labels from log fields (for example, `description`) if you're integrating with a third-party tool such as Slack. Click **Next**.\n8. Optional: Configure the minimum **Time between notifications** and the **Incident autoclose duration** . Click **Next**.\n9. If you have configured a supported channel, you can select it from the **Notifications Channels** list; otherwise, you can click **Manage Notification\n Channels** and add a supported channel. For more information, see [Create and manage notification channels](/monitoring/support/notification-options).\n10. Click **Save**. Your log-based alert is now ready to test.\n\nWhat's next\n-----------\n\n- Log schema [overview](/unified-maintenance/docs/log-schema)\n- Implement [common alert policies](/unified-maintenance/docs/implement-common-alert-policies)\n- Control [maintenance](/unified-maintenance/docs/reschedule-and-on-demand-updates)"]]