Quotas and limits

This page provides details on the limits that apply to using Cloud Logging.

Logging quotas and usage limits

The following table lists quotas and limits that apply to the usage ofCloud Logging. In general, you can request an increase for a quota. However,limits can't be changed.

Some entries are listed as being per project but the note indicates that theentry also applies to billing accounts, folders, and organizations and isn'thierarchical. For example, if you have multiple Google Cloud projectsin an organization, then you could configure up to200 sinks for each Google Cloud project; for thatsame organization, you could also configure up to 200sinks at the organization level.

CategoryMaximum value of limit or
initial quota value
Notes
Size of aLogEntry256 KBThis limit is approximate and is based on internal data sizes, not the actual REST API request size. Cannot be increased.
Size of anaudit log entry512 KiBCannot be increased.
Number of labels64 perLogEntryCannot be increased.
Length of aLogEntry label key512 BCloud Logging truncates oversized label keys when their associated log entry is written. Cannot be increased.
Length of aLogEntry label value64 KBCloud Logging truncates oversized label values when their associated log entry is written. Cannot be increased.
Length of aLogging query language query20,000 charactersCannot be increased.
Query fanout200 buckets

This limit is the maximum number of buckets that might contain log entries for a resource. For more information, seeQuery returns an error. Cannot be increased.

For performance reasons, minimize the number of log buckets and create your log buckets in one region. If you frequently need to query log entries that originate in different resources, then consider routing log entries to a few centralized log buckets.

Number ofsinks200 per Google Cloud projectCan be increased to 4,000. This quota also applies to billing accounts, folders, and organizations and isn't hierarchical.
Length of asink inclusion filter20,000 charactersCannot be increased.
Length of asink exclusion filter20,000 charactersCannot be increased.
Number ofexclusion filters50 per sink

Cannot be increased.

If you need more than 50 exclusion filters, then refine the inclusion filter.

Number oflog buckets100 per Google Cloud project

Can be increased to 2,500. This quota is the maximum number of buckets that might contain log entries for a resource and it includes buckets that arepending deletion.

This quota also applies to billing accounts, folders, and organizations and isn't hierarchical.

If you increase the maximum number of log buckets, then you might have a degraded user experience because the default log scope can't include all log buckets in a project.

Number ofcustom indexed fields20 per log bucket

Cannot be increased.

Cloud Logging supports full-text indexing. Therefore, we don't recommend that you define custom indexing.

Number oflog views30 per log bucket

Can be increased to 1,000 log views on a single log bucket.

If you increase the maximum number of log views, then you might have a degraded user experience because the default log scope can't include all log buckets in a project.

Oldest timestamp that can be stored in log bucketsDetermined by theretention period of the log bucket.

For a custom log bucket with the default retention period, this value is 30 days in the past.

The Logging API accepts log entries with older timestamps and those log entries are routed to sink destinations. However, if log entries with older timestamps are routed to a log bucket, then they aren't stored.

Future timestamp that can be stored in log bucketsUp to 1 day in the futureThe Logging API rejects entries with timestamps more than 1 day in the future and returns anINVALID_ARGUMENT error. Cannot be increased.
Number oflog scopes per resource100Can be increased to 10,000.
Number of log views and projects included in a log scope100We recommend that a log scope lists log views instead of projects, when possible. Listing log views results in reduced query time and increased clarity as to which log entries are being queried.
Number of projects included in a log scope5We recommend that a log scope lists log views instead of projects, when possible. The log views can be in different projects.
Maximum number of analytics views per Google Cloud project100Cannot be increased.

This feature is in Public Preview.

Per Google Cloud project, the maximum number of analytics views per region50Cannot be increased.

This feature is in Public Preview.

Per Google Cloud project, the maximum number of regions that can store analytics views10Cannot be increased.

This feature is in Public Preview.

Logging API quotas and limits

The following limits apply to your usage of the Logging API. You canrequest changes to your Logging API quotas and limits; forinstructions, seeRequesting changes to Cloud Logging API quota on this page.

To view your API quotas, go to theAPI dashboard,select an API, and then selectQuotas.

CategoryMaximum value of limit or
initial quota value
Notes
Lifetime of API page tokens24 hoursCannot be increased.
Number of open live-tailing sessions10 per Google Cloud project

Cannot be increased.

This limit also applies to billing accounts, folders, and organizations and isn't hierarchical.

Number of live-tailing entries returned60,000 per minuteCannot be increased.
Number ofrestricted fields20 per bucketCannot be increased.
Size of a restricted field800 BCannot be increased.
Size of anentries.write request10 MBCannot be increased.
Rate ofentries.write requests, by region4.8 GB per minute, per Google Cloud project, in the regionsasia-east1,asia-northeast1,asia-southeast1,asia-south1,europe-west1,europe-west2,europe-west3,europe-west4,us-central1,us-east4,us-west1

300 MB per minute, per Google Cloud project, in all remaining regions

You can request a quota increase.

This quota also applies to billing accounts, folders, and organizations and isn't hierarchical.

For more information about these quotas, see Per-region ingestion quotas.

Usingexclusion filters doesn't reduce the rate of write requests because log entries are excluded after theentries.write request is made.

Number ofentries.list requests60 per minute, per Google Cloud project

Cannot be increased.

This limit also applies to billing accounts, folders, and organizations and isn't hierarchical.

To query large volumes of logs, consider using BigQuery APIs. For transferring large volumes of logs, consider using a log sink orCopy log entries.

Number of different resource names in a singleentries.write command1000

Cannot be increased.

ThelogName field of a log entry specifies the log entry's resource name.

Control requests per minute600

Cannot be increased.

This quota applies to everything also included in the daily control-request quota, plus API requests for deleting logs and managing log-based metrics.

Control requests per day1,000 per Google Cloud project

Cannot be increased.

This quota applies to API requests for creating and updating exclusions and sinks.

Number of Google Cloud projects or other resource names in a
singleentries.list request
100Cannot be increased.
Number of concurrent copy operations1 per Google Cloud project

Cannot be increased.

This limit also applies to billing accounts, folders, and organizations and isn't hierarchical.

Rate of exports to Pub/Sub topics60 GB per minute per Google Cloud project, folder, or organization where the sink is defined

You can file a support request to raise your quota. Increased quota is granted based on Pub/Sub availability.

If the rate of exports exceeds the quota, then the error is recorded in a log entry. The summary field indicates sink configuration error and the error code is listed astopic_over_quota.

Per-region ingestion quotas

To improve isolation and protect regional resources from ingestion overload,Cloud Logging quotas restrict, on a per-Google Cloud project basis, the volumeof data written to an ingestion region.

The following table shows the default quota for each region:

Ingestion regionDefault value
asia-east1,asia-northeast1,asia-southeast1,asia-south1,europe-west1,europe-west2,europe-west3,europe-west4,us-central1,us-east4,us-west14.8 GB per minute, per Google Cloud project
All remaining regions300 MB per minute, per Google Cloud project

The default values for the regional quotas exceed the ingestion volumes ofmost users. However, if before the quotas were enforced,your project's ingestion volume from a region in the previous six or more monthswas close to or above the default quota for that region, then your initial quotaincludes an automatic, one-time increase. Therefore, your quotas mightbe higher than the defaults in the preceding table. For information aboutreviewing quotas, seeReview your Logging quotas.

If you exceed a regional quota, your write requests to theCloud Logging API might be rejected with a "resource exhausted" error message.For recommendations to help you avoid exceeding quotas, seeManage and monitor your Logging quotas.

Review your Cloud Logging API quotas

To review your Cloud Logging API quotas, do the following:

  1. In the Google Cloud console, go to theQuotas & System Limits page:

    Go toQuotas & System Limits

    If you use the search bar to find this page, then select the result whose subheading isIAM & Admin.

  2. Filter the list of quotas for the Cloud Logging API service.

Request changes to Cloud Logging API quota

You can request higher or lower Logging API limits using theGoogle Cloud console.For more information, seeView and manage quotas.

If you get an errorEdit is not allowed for this quota, you cancontact Support to request changes tothe quota. Note also that billing must be enabled on theGoogle Cloud project to click the checkboxes.

Manage and monitor your Cloud Logging API quotas

To prevent service disruptions caused by exceeding quotas, you can do thefollowing:

  • Use automatic quota adjustment to monitor your quota usage and requestincreases for you. For more information, seeQuota adjuster.
  • Create alerts on quotas to notify you about usage. For more information, seeSet up quota alerts.

Optimize usage ofentries.list

The expected usage ofentries.list is to search formatching logs. This method isn't intended for high-volume retrieval oflog entries. Ifyou're regularly exhausting yourentries.list quota, then consider thefollowing options:

  • Ensure that you are using the Cloud Logging API effectively. For more information,seeOptimize usage of the API.

  • If you know in advance that the log entries you want to analyze exceed theentries.list quota, thenconfigure a log sink to export yourlogs to a supported destination.

  • To analyze log entries outside of Logging, you canretroactivelycopy log entries that already exist inLogging to Cloud Storage buckets. When you copy logs toa Cloud Storage bucket, you can share log entries with auditors outside ofLogging, and run scripts in Cloud Storage.
  • To aggregate and analyze your log entries within Logging,store your log entries in a log bucket, and then upgrade thatlog bucket to use Log Analytics. For information about these steps, seeConfigure log buckets.

    Log Analytics lets you query your log entries by usingBigQuery-standard SQL.

Log-based metrics

The following limits apply to your usage ofuser-defined log-based metrics.With the exception of the number of metric descriptors,these limits are fixed; you can't increase or decrease them.

CategoryMaximum value
Number oflabels10 per metric
Length oflabel value1,024 B
Length oflabel description800 B
Length of the filter120,000 characters
Length ofmetric descriptors8,000 B
Number ofmetric descriptors500 per Google Cloud project2
Number of activetime series330,000 per metric
Number ofhistogram buckets200 per customdistribution metric
Data retentionSeeCloud Monitoring: Data retention

1 Each log-based metric contains a filter. When a log entrymatches the filter, the log entry is counted. Filters are defined by usingtheLogging query language.
2 This limit also applies to billing accounts, folders, andorganizations and isn't hierarchical.
3Atime series is active if you have writtendata points to it within the last 24hours.

Audit logging

The maximum sizes ofaudit logs are shown in thefollowing table. These values can help you estimate the space you need in yoursink destinations.

Audit log typeMaximum size
Admin Activity512 KiB
Data Access512 KiB
System Event512 KiB
Policy Denied512 KiB

Logs retention periods

Note: EffectiveApril 1, 2023, retention costsapply to logs data retained longer than thedefault retention period ofthe_Default bucket and user-defined log buckets.For pricing details, see the Cloud Logging sections of theGoogle Cloud Observability pricingpage. To review the billable storage for yourlog buckets, go to theLogs Storage page of the Google Cloud console.

The following Cloud Logging retention periods apply tolog buckets, regardless of whichtypes of logs are included in the bucket or whether they were copied fromanother location. The retention information is as follows:

BucketDefault retention periodCustom retention
_Required400 daysNot configurable
_Default30 daysConfigurable
User-defined30 daysConfigurable

For the_Default and user-defined log buckets, you can configureCloud Logging to retain your logs between1 day and3650 days. For information on setting retentionrules, seeConfigure custom retention.

Pricing

For pricing information, seeGoogle Cloud Observability pricing page. If you route log data toother Google Cloud services, then see the following documents:

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-18 UTC.