This page explains how regionality applies to Cloud Logging and lists the different geographical locations where you can store your logs data.
In Logging, log buckets are regional resources: the infrastructure that stores, indexes, and searches your logs is located in a specific geographical location. Google manages that infrastructure so that your applications are available redundantly across the zones within that region.
Your organization might be required to store its logs data in specific regions. The primary factors in selecting the region where your logs are stored include meeting your organization's latency, availability, or compliance requirements. When selecting a region for logs storage, consider the locations of the other Google Cloud products and services that your application uses.
The following key concepts apply to data regionality for Logging.
Log Router locations
The Log Router processes all log entries written to the Cloud Logging API. It checks each log entry against existing rules to determine which log entries to store in Logging buckets and which log entries to route to supported destinations using sinks. To reliably route logs, the Log Router also stores the logs temporarily, which buffers against temporary disruptions on any sink.
The Log Router processes logs in the region in which they are received. The Log Router might send logs to a different region based on a sink's definition or if you've opted to share log data with another Google service such as the Security Command Center Threat Detection. Sinks apply to logs equally and regardless of region.
Log bucket locations
Log buckets are the containers in your Cloud project, billing account, folder, and organization that store and organize your logs data.
For each Cloud project, billing account, folder, and organization,
Logging automatically creates two log buckets:
_Default, which are set to the
global location. You can also create
user-defined buckets for any Cloud project.
When you create a user-defined bucket, you can specify
region for storing its logs data. After you create the bucket, the
location can't be changed, but you can create a new bucket and direct logs to
that bucket using sinks. To learn how to set the region for your buckets, see
Regionalize your Cloud project logs.
Logging supports querying logs from multiple regions together, in which case queries are processed in the same location as the buckets being queried and then aggregated in the region the query was received to return the results.
The following regions are supported by the Cloud Logging API:
In addition to these regions, the
global location is supported, which means
that you don't specify where your logs are physically stored or processed.
Following are known limitations of data regionality for Cloud Logging:
Cloud Monitoring is a global product, and its services are available with no dependence on location. Logs-based metrics let you to define a rule for aggregating logs into time series by processing logs at the Logs Router. The storage location of these time series is unspecified.
Learn how to regionalize your Cloud project logs.
Explore additional location-based concepts, such as zones, that apply to other Google Cloud services.
Read the following whitepapers that provide best practices for data governance: