Stay organized with collections
Save and categorize content based on your preferences.
You cannot deactivate Unified Maintenance, but you can opt out of storing these logs.
You can either disable the Default sink
in the Log Router, or you can configure an exclusion filter 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:
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.
Select the Google Cloud project from which the log entries that are being routed originate.
Select the sink that controls your exclusion filter.
Click more_vertMore actions and select one of the following:
Edit sink—lets you remove the exclusion query; delete the exclusion query and then click Update sink.
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.
[[["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-08-25 UTC."],[],[],null,["# Turn off logs storage\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\nYou cannot deactivate Unified Maintenance, but you can opt out of storing these logs.\nYou can either [disable the Default sink](/logging/docs/routing/overview#buckets)\nin the Log Router, or you can configure an [exclusion filter](/logging/docs/routing/overview#exclusions) specific to Unified Maintenance logs.\n\nExclusion filters\n-----------------\n\nExclusion 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.\n\n### Enforce exclusion filter\n\nTo enforce an exclusion filter for Unified Maintenance logs:\n\n1. 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** .\n\n [Go to Logs Router](https://console.cloud.google.com/logs/router)\n2. Select the Google Cloud project from which the log entries that are being routed originate.\n3. Click **Create sink**.\n4. Provide a **Sink name** and **Sink description** and then click **Next**.\n5. In the **Select sink service** list, select a sink service and then select a destination.\n6. Select **Choose logs to filter out of sink**.\n7. Click **Add exclusion**.\n8. Provide an **Exclusion filter name** and an **exclusion filter** . To exclude all maintenance event logs, enter: \n\n ```sql\n LOG_ID(\"maintenance.googleapis.com/maintenance_events\") \n ```\n9. Click **Create sink**.\n\nYou should see a message indicating that your log sink was successfully created.\n\n### Remove exclusion filter\n\nTo remove an exclusion filter for Unified Maintenance logs:\n\n1. In the Google Cloud console, go to the **Log Router** page.\n If you use the search bar to find this page, select the result whose subheading is **Logging**.\n\n [Go to Logs Router](https://console.cloud.google.com/logs/router)\n2. Select the Google Cloud project from which the log entries that are being routed originate.\n\n3. Select the sink that controls your exclusion filter.\n\n4. Click more_vert **More actions** and select one of the following:\n\n 1. **Edit sink---** lets you remove the exclusion query; delete the exclusion query and then click **Update sink**.\n 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.\n\nWhat's next\n-----------\n\n- Product [overview](/unified-maintenance/docs/overview)"]]