GCP Cloud Logging Pricing: Ingestion, Retention, Query Costs, and Log Buckets
Start with a calculator if you need a first-pass estimate, then use this guide to validate the assumptions and catch the billing traps.
Logging costs are predictable when you treat logs like data, but the first budgeting decision is whether Cloud Logging cost is mainly being created by ingestion volume, retention policy, or repeated query and scan behavior. The page gets much easier to trust once you separate the Cloud Logging bill itself from the systems that analyze or archive logs after routing.
Quick pricing read
Cloud Logging pricing is not one generic "search your logs" fee. The first bill boundary is whether the log entry is stored in a Cloud Logging bucket at all. After that, the main Cloud Logging-native charges are ingestion into log bucket storage, retention beyond the included period, and any bucket-level storage pattern created by routing the same log into multiple destinations. Querying in Logs Explorer does not behave the same way as routed analysis in BigQuery or downstream SIEM tools, so those paths should not be blended into one line item.
- Ingestion is usually the main paid surface: Cloud Logging charges for logs streamed into log bucket storage for indexing, querying, and analysis, with the first 50 GiB per project per month free for standard logging storage.
- Retention becomes a second charge only after the included period: default bucket retention does not create the same long-tail storage bill as extending retention beyond 30 days.
- Log buckets change ownership: if logs are routed into multiple buckets, the project that stores those buckets carries the storage charge for each stored copy.
- Query and analysis paths must stay separated: Logs Explorer usage is not the same budget line as routed analysis in BigQuery, Pub/Sub pipelines, or external SIEM tooling.
- Vended network logs and routed analytics can change the shape: network telemetry, bucket choices, and routed destinations can make a logging estate look more expensive or cheaper than one blended average suggests.
This page was updated on 2026-06-18 against the current Google Cloud Observability pricing page, Cloud Logging bucket documentation, and Cloud Logging analytics guidance.
Inside the Cloud Logging bill vs beside the Cloud Logging bill
- Inside the Cloud Logging bill: ingestion into Cloud Logging bucket storage, retained data beyond the included period, bucket-level storage ownership, and any separate storage behavior created by routing logs into multiple buckets.
- Beside the Cloud Logging bill: BigQuery analysis, Pub/Sub fan-out, SIEM ingestion, Cloud Storage archive copies, and broader observability tooling that consumes logs after they leave the bucket path.
- Why this matters: BigQuery, Pub/Sub, and SIEM pipelines belong beside the Cloud Logging bill, because a team can have a modest Cloud Logging bill and still create a large downstream logging estate elsewhere.
0) Inventory sources (do not blend)
List the sources that can dominate volume and model them separately.
- Ingress/access: very high volume, moderate size.
- Firewall/WAF: can be high volume and high size (rule metadata).
- Audit/security: lower volume but required retention.
- Application logs: depends on log level and request volume.
1) Ingestion (GB)
Ingestion is the core driver. If you have usage exports, use them. If not, estimate from event rate and payload size. For most teams, this is the first place to look before debating retention or analytics tooling.
Tools: Log ingestion, Estimate GB/day guide.
- Model baseline + peak: incident traffic and verbose logging can create a peak month.
- Sample bytes/event for the top sources instead of using one blended average.
- Keep ordinary application logs, load balancer logs, audit logs, and firewall or network logs separated because they rarely share the same size or retention profile.
2) Retention (GB-month)
Retention is a storage multiplier. In steady state, stored volume is roughly the last N days of logs, so retained GB is approximately GB/day × retention days. For Cloud Logging specifically, you should separate the included retention window from extended retention, because the economics change once you deliberately keep logs longer than the default bucket behavior.
Tools: Retention storage, Tiered log storage.
- Keep a short hot window for troubleshooting and archive only what you must keep long-term.
- Split retention by log class (access vs audit vs app logs) instead of one global retention setting.
- Validate which logs remain in Cloud Logging buckets versus which are exported elsewhere, because the exported copy creates a different storage bill.
3) Query and scan (dashboards + alerts)
Query and analysis behavior can still matter, but keep the budget boundary clean. Logs Explorer behavior inside Cloud Logging is not the same as routed queries in BigQuery or downstream SIEM tools. Dashboards and alert rules can scan far more data than you expect once logs leave the basic bucket workflow and enter heavier analytics paths.
Tool: Log scan/search.
- A dashboard refreshing every minute is 1,440 refreshes/day.
- Prefer queries that filter early and use narrower time windows.
- If a team is really paying for routed analytics rather than Cloud Logging-native usage, move that spend beside the Cloud Logging bill instead of hiding it here.
Worked estimate template (copy/paste)
- GB/day ingested = sum over sources(events/day × bytes/event ÷ 1e9)
- GB/month ingested = GB/day × 30.4 (baseline + peak)
- Retained GB ~= GB/day × retention days (split by source)
- GB scanned/month = scans/day × GB/scan × 30.4 (dashboards + alerts)
Common pitfalls
- Turning on high-volume sources without measuring their payload sizes.
- Using one blended event size that hides a dominant source (ingress/firewall).
- Blending Cloud Logging storage with BigQuery, Pub/Sub, SIEM, or object-storage archive costs.
- Keeping long retention everywhere by default.
- Dashboards/alerts scanning wide windows repeatedly (query cost explosion).
- Verbose logging during incidents (peak ingestion dominates the month).
How to validate
- Sample payload sizes for top sources and compute bytes/event.
- Validate which sources are enabled and disable/suppress the noisiest first.
- Validate which log buckets actually store the data and which projects own those buckets.
- Validate retention per log class and apply tiered storage if needed.
- Audit whether analysis happens in Logs Explorer, BigQuery, or external SIEM tooling before assigning query costs.
- Audit dashboard refresh intervals and alert windows (reduce repeated wide scans).
Related tools
Sources
- Google Cloud Observability pricing
- Configure Cloud Logging buckets
- Logs Explorer and Log Analytics guidance