You cannot deactivate Unified Maintenance, but you can opt out of storing these logs.
You can either [disable the Default sink](https://docs.cloud.google.com/logging/docs/routing/overview.md.txt#buckets)
in the Log Router, or you can configure an [exclusion filter](https://docs.cloud.google.com/logging/docs/routing/overview.md.txt#exclusions) specific to Unified Maintenance logs.

## Exclusion filters

Exclusion filters let you exclude log entries that match the inclusion filter from being routed to the sink's destination or from being stored in a log bucket.

### Enforce exclusion filter

To enforce an exclusion filter for Unified Maintenance logs:

1. In the Google Cloud console, go to the **Log Router** page. If you use the search bar to find this page, select the result whose subheading is **Logging** .

   [Go to Logs Router](https://console.cloud.google.com/logs/router)
2. Select the Google Cloud project from which the log entries that are being routed originate.
3. Click **Create sink**.
4. Provide a **Sink name** and **Sink description** and then click **Next**.
5. In the **Select sink service** list, select a sink service and then select a destination.
6. Select **Choose logs to filter out of sink**.
7. Click **Add exclusion**.
8. Provide an **Exclusion filter name** and an **exclusion filter** . To exclude all maintenance event logs, enter:

   ```sql
    LOG_ID("maintenance.googleapis.com/maintenance_events") 
   ```
9. Click **Create sink**.

You should see a message indicating that your log sink was successfully created.

### Remove exclusion filter

To remove an exclusion filter for Unified Maintenance logs:

1. In the Google Cloud console, go to the **Log Router** page.
   If you use the search bar to find this page, select the result whose subheading is **Logging**.

   [Go to Logs Router](https://console.cloud.google.com/logs/router)
2. Select the Google Cloud project from which the log entries that are being routed originate.

3. Select the sink that controls your exclusion filter.

4. Click **More actions** and select one of the following:

   1. **Edit sink---** lets you remove the exclusion query; delete the exclusion query and then click **Update sink**.
   2. **Disable sink---**stops all logs from being exported by the sink. Note that any logs that arrive after the sink is disabled are not sent to this sink's destination and will be lost if they are not captured by another sink.

## What's next

- Product [overview](https://docs.cloud.google.com/unified-maintenance/docs/overview.md.txt)