How to centralize Google Cloud organization logs with a sink
An organization-wide Google Cloud log sink is an aggregated sink that routes logs from projects below an organization or folder to a central destination. A non-intercepting sink is a safer starting point when you want central copies while keeping each child project’s existing logging. Creating the sink alone does not store logs centrally: the filter, destination, and destination write access for the sink’s writer identity must all be correct.
How to centralize Google Cloud organization logs with a sink
An organization-wide Google Cloud log sink is an aggregated sink that routes logs from projects below an organization or folder to a central destination. A non-intercepting sink is a safer starting point when you want central copies while keeping each child project’s existing logging. Creating the sink alone does not store logs centrally: the filter, destination, and destination write access for the sink’s writer identity must all be correct.
This guide covers Google Cloud Logging’s organization-level aggregated sinks as documented in November 2026. The example routes organization audit logs to a logging project, where a project-level sink stores them in a log bucket. Central collection does not by itself mean you should choose an intercepting sink; the two types change child-project routing differently.
What problem does an organization-level sink solve?
Cloud Logging’s Log Router evaluates sinks at resource scopes such as projects, folders, and organizations. A regular project sink handles logs from one project. An aggregated sink created on a folder or organization can route matching logs from that resource and its descendants to a central destination. Destinations include log buckets, Cloud Storage, BigQuery datasets, and Pub/Sub, each with its own constraints. Logs must be stored in log buckets to use Cloud Logging analysis features such as Logs Explorer. (Google Cloud: Aggregated sinks overview, Route log entries and destinations)
“Organization-wide” does not mean every log is automatically included. A sink has an inclusion filter and can also have exclusion filters. If no inclusion filter is set, all incoming entries for the selected resource can be routed, so define the collection goal and inspect the filter preview first. To limit routing to specific child resources, name those resources in the filter. (Google Cloud: Collate and route organization and folder logs)
How do non-intercepting and intercepting sinks differ?
The key difference is whether child-resource sinks can continue routing a matching entry after the organization sink evaluates it.
| Type | After the organization sink matches a log | Suitable when | Main risk |
|---|---|---|---|
| Non-intercepting | The entry is also passed to sinks in the project where it originated | You want central storage and want to preserve existing project logging | Duplicate copies can increase storage and cost |
| Intercepting | Matching entries go to the central destination and child sinks are bypassed, except for _Required sinks | You need central control of storage and want to prevent child copies | A bad filter or destination can disrupt existing project workflows |
An intercepting aggregated sink requires a Google Cloud project as its destination. Sinks in that project can then route logs to a log bucket or another supported destination. A non-intercepting sink can route directly to a log bucket or other supported destination. Unless you have a clear policy need to stop independent child storage, start by validating the non-intercepting behavior to limit the change’s impact. (Google Cloud: Aggregated sink behavior and destinations)
What should you prepare?
Identify the organization or folder ID where logs originate and the destination logging project. To create a sink, you need a suitable role on the source organization or folder, such as roles/logging.configWriter or roles/logging.admin. Prepare the destination project and log bucket, and ensure you can grant the sink’s writer identity permission to write there. Google Cloud allows up to 200 aggregated sinks per folder or organization. (Google Cloud: Create aggregated sinks)
Replace these example values with your own:
`ORG_ID`: numeric Google Cloud organization ID
`LOG_PROJECT`: project ID for centralized log storage
`BUCKET`: prepared log bucket name in that project
`LOCATION`: the bucket location
`SINK`: a unique name for the organization sink
Use the real destination path and location. Sink names cannot be changed after creation, so choose a descriptive name. If the destination is inside a VPC Service Controls perimeter, review ingress rules so the sink’s writer identity can reach it. Assured Workloads and other environments can impose additional restrictions. (Google Cloud: Aggregated sink limitations)
How do you route organization audit logs to a central bucket?
This example uses a non-intercepting organization sink to send Cloud Audit Logs to a central logging project, then a project-level sink to store them in a bucket. It is an audit-log example, not a claim that every organization log should be centralized in the same way.
Prepare the central log bucket. Create a bucket in the logging project and decide its location and retention period. The location cannot be changed after creation, so check data-residency requirements and organization policy first.
Create a project-level sink in the central project. Route matching logs to the bucket, replacing the project, location, and bucket placeholders:
gcloud logging sinks create central-audit-bucket \ logging.googleapis.com/projects/LOG_PROJECT/locations/LOCATION/buckets/BUCKET \ --project=LOG_PROJECT \ --log-filter='logName:cloudaudit.googleapis.com' \ --description='Organization audit logs to central bucket'Google’s centralized-storage tutorial uses this two-stage arrangement: the organization sink routes to a logging project, and a project sink routes to the bucket. Check the central project’s sink and filter because system-created sinks might exclude entries you expect to retain. (Google Cloud: Aggregate and store organization logs)
Create the organization aggregated sink. The
--include-childrenflag includes logs from projects and folders under the organization. Replace the sink name and organization ID:gcloud logging sinks create org-audit-central \ logging.googleapis.com/projects/LOG_PROJECT \ --organization=ORG_ID \ --include-children \ --log-filter='logName:cloudaudit.googleapis.com' \ --description='Organization audit logs to central logging project'This creates a non-intercepting sink by default. You can add
--intercept-childrenfor intercepting behavior, but first review its impact and destination requirements. Changes can take a few minutes to apply. (
This routes new incoming logs; do not assume old logs are copied retroactively. Use a separate batch-routing workflow if you need historical entries. (Google Cloud: Troubleshoot routing and storage)
What should you check if logs are missing or duplicated?
First confirm that matching entries arrived after the sink was created. Changes can take a few minutes, and some destinations such as Cloud Storage can take longer. Logs may also be present but hidden by an incorrect Logs Explorer project, view, or time range.
Then check the organization ID, --include-children, inclusion and exclusion filters, and destination permissions for the writer identity. The sink metrics exports/byte_count, exports/log_entry_count, and exports/error_count help distinguish routed volume from failed delivery. For errors, inspect Cloud Logging’s sink error logs for the sink name. If the filter is wrong, preview and correct it in the console. (Google Cloud: Troubleshoot routing and storage)
Duplicates can be expected with a non-intercepting sink: the organization sink creates a central copy while the project sink may keep a local copy. Before switching to intercepting mode, identify which teams and workflows need each copy and weigh retention and cost. Intercepting changes child routing, while _Required sinks continue to process applicable entries.
An organization-wide sink simplifies central audit and operations analysis, but one setting does not resolve every storage, access, and retention need. Specify the scope with filters, separate destination write access from reader access, and verify actual arrivals and error metrics before relying on the setup.
References
[Google Cloud: Aggregated sinks overview](https://docs.cloud.google.com/logging/docs/export/aggregated_sinks_overview?hl=en)
[Google Cloud: Collate and route organization and folder logs](https://docs.cloud.google.com/logging/docs/export/aggregated_sinks)
[Google Cloud: Aggregate and store organization logs](https://docs.cloud.google.com/logging/docs/central-log-storage)
[Google Cloud: Route log entries and destinations](https://docs.cloud.google.com/logging/docs/routing/overview)
[Google Cloud: Set sink destination permissions](https://docs.cloud.google.com/logging/docs/export/configure_export_v2)
[Google Cloud: Troubleshoot routing and storage](https://docs.cloud.google.com/logging/docs/export/troubleshoot)