Quotas and limits

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

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 per metric 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.

Logging API quotas and limits

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

Requesting more quota

You can request higher Stackdriver Logging API limits using the Google Cloud Console:

  1. In the Quotas page, use the checkboxes to select Stackdriver Logging API, then click EDIT QUOTAS.

    Billing must be enabled on the project in order to click the checkboxes.

  2. In the Edit Quotas panel, complete the form with your Name, Email , and Phone details, then click Next.

  3. In the Edit Quotas panel, select the service to expand the view, then edit the quotas in that service to your requested limit. Click Done.

  4. Click Submit request.

You can also contact Google Cloud Support to request more Logging API quota. The other limits are fixed and as detailed on this page.

For more information, go to Working with quotas.

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
Оцените, насколько информация на этой странице была вам полезна:

Оставить отзыв о...

Текущей странице
Stackdriver Logging Documentation