Quotas and limits

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

Requesting more quota

You can request higher Stackdriver Logging API limits; to do so, contact GCP Support. The other limits are fixed and as detailed below.

Logging usage limits

Category Maximum value
Size of a log entry 256 KB*
Size of an entries.write request 5 MB*
Number of entries.write API calls 1000 per second, per project
Number of entries.list API calls 1 per second, per project
Number of projects or other resource names in a single entries.list API call 100
Export sinks 200 per project
Exclusion queries 50 per project

* This approximate limit is based on internal data sizes, not the actual REST API request size.

Logs-based metrics

Category Maximum value
Length of label value 1,024 bytes
Length of label description 800 bytes
Length of metric description 8,000 bytes
Active time series1 30,000
Metric descriptors per project 500
Histogram buckets per custom distribution metric 200

1A time series is active if you have written data points to it within the last 24 hours.

Stackdriver Logging API quotas and limits

Category Maximum value
API usage To view your quota, go to the API dashboard. Click an API and select Quotas.
Lifetime of API page tokens 24 hours

Logs retention periods

Log type Retention period
Admin Activity audit logs 400 days
Data Access audit logs 30 days
System Event audit logs 400 days
Access Transparency logs 400 days
Logs other than audit logs or Access Transparency logs 30 days
Was this page helpful? Let us know how we did:

Send feedback about...

Stackdriver Logging
Need help? Visit our support page.