Skip to content
Calcrivo

GCP Logging Cost Calculator

Cost Cloud Logging ingestion after exclusion filters and the free tier, plus retention beyond the default 30 days.

Inputs

GiB/month
%

Health-check and sidecar access logs are the usual first exclusions.

GiB

Cloud Logging includes 50 GiB of ingestion per project each month.

USD/GiB
days

The first 30 days of retention are included in the ingestion price.

days
USD/GiB-month
GiB

Routing logs out of Logging is free; storing them in the destination is not.

USD/GiB-month
GiB
USD/GiB

Log Analytics queries on the default bucket are included; set a rate if you use linked BigQuery datasets.

Monthly Cost

$122.60

Billed Ingestion

230.0GiB

Ingestion Charge

$115.00

Extended Retention Charge

$5.60

Sink Storage Charge

$2.00

Saved by Exclusion Filters

$60.00

Volume Covered by the Free Tier

17.9%

Effective Cost per Generated GiB

$0.3065

Step by step

  1. Values used

    Log volume generated = 400 GiB/month; Volume removed by exclusion filters = 30 %; Free ingestion allotment = 50 GiB; Ingestion price per GiB = 0.5000 USD/GiB; Retention configured on the bucket = 90 days; Retention days included free = 30 days; Retention price per GiB-month = 0.0100 USD/GiB-month; Volume routed to a Cloud Storage sink = 200 GiB; Sink storage price per GiB = 0.0100 USD/GiB-month; Volume queried through Log Analytics = 100 GiB; Analytics query price per GiB = 0 USD/GiB

  2. GCP Logging Cost

    billed GiB = volume × (1 − exclusions) − free allotment; cost = billed GiB × ingestion price + retained GiB × extra retention months × retention price + sink storage.

  3. Monthly Cost

    = 122.60

  4. Billed Ingestion

    = 230.0 GiB

  5. Ingestion Charge

    = 115.00

  6. Extended Retention Charge

    = 5.60

  7. Sink Storage Charge

    = 2.00

  8. Saved by Exclusion Filters

    = 60.00

How it works

Cloud Logging charges once for ingestion and then again for retention beyond 30 days, and the only lever that reduces ingestion is an exclusion filter — sinks route a copy elsewhere but do not reduce what you already ingested. That is why the exclusion saving is shown separately from the sink line. Logging bills are dominated by high-volume, low-value entries such as load-balancer health checks, and excluding those is usually a one-line filter that removes a third of the bill. Confirm the per-GiB ingestion and retention prices in the Google Cloud pricing calculator, and remember the free allotment is per project rather than per organisation.

Formula

GCP Logging Cost

billed GiB = volume × (1 − exclusions) − free allotment; cost = billed GiB × ingestion price + retained GiB × extra retention months × retention price + sink storage.

exclusions
Share of matching log entries dropped before ingestion, and therefore before billing
free allotment
50 GiB of ingestion included per project each month
extra retention
Days configured beyond the 30 included in the ingestion price

Frequently Asked Questions

How is GCP Logging Cost calculated?

billed GiB = volume × (1 − exclusions) − free allotment; cost = billed GiB × ingestion price + retained GiB × extra retention months × retention price + sink storage. Cloud Logging charges once for ingestion and then again for retention beyond 30 days, and the only lever that reduces ingestion is an exclusion filter — sinks route a copy elsewhere but do not reduce what you already ingested. That is why the exclusion saving is shown separately from the sink line.

Why does GCP Logging Cost matter?

Logging bills are dominated by high-volume, low-value entries such as load-balancer health checks, and excluding those is usually a one-line filter that removes a third of the bill. Confirm the per-GiB ingestion and retention prices in the Google Cloud pricing calculator, and remember the free allotment is per project rather than per organisation.

What values do I need to enter?

This calculator takes 11 inputs: Log volume generated, Volume removed by exclusion filters, Free ingestion allotment, Ingestion price per GiB, Retention configured on the bucket, Retention days included free, Retention price per GiB-month, Volume routed to a Cloud Storage sink, Sink storage price per GiB, Volume queried through Log Analytics, Analytics query price per GiB. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Do exclusion filters and sinks reduce the same cost?

No. An exclusion filter drops entries so they are never ingested and never billed. A sink copies entries to another destination and the original ingestion is still charged, so use sinks for retention or analysis and exclusions for cost.

You might also need