Google Cloud · Management and Operations
Cloud Logging
Central log storage, search and routing: log buckets, sinks to BigQuery, Pub/Sub or Cloud Storage, and audit logs.
On the Google Cloud Associate Cloud Engineer exam listMonitoring and observabilityAuditing and compliance
What it is and what problem it solves
Cloud Logging receives logs from Google Cloud services, VMs (Ops Agent), GKE and applications, and stores them
in log buckets: _Required for required audit logs and _Default for the rest. The Log Router uses
sinks to send logs to other buckets, BigQuery, Pub/Sub or Cloud Storage, including aggregated sinks at
organisation level, and exclusion filters drop noisy logs. Log Analytics queries logs with SQL.
When to use it
- Searching application and platform logs during incidents.
- Central security logging across the organisation.
- Exporting logs for long-term retention or analysis.
When to avoid it
- Using logs where metrics would be cheaper and faster (counters, latencies): Cloud Monitoring.
- Keeping verbose debug logs at full volume forever.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| Default retention | _Default bucket 30 days; _Required bucket 400 days Can be raised with a quota request |
_Default retention can be changed; _Required can't. | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
- Ingestion per GiB beyond the free allotment (the _Required bucket is free).
- Retention beyond the default period.
Where it is cost-efficient
Structured, purposeful logs with exclusions for noise.
Where costs grow
Debug logging in production, high-volume request logs, and Data Access audit logs enabled everywhere.
Cost controls and common surprises
Exclusion filters, sampling, log levels per environment, and routing long-term logs to cheaper storage.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Admin Activity audit logs always on; Data Access audit logs configurable; bucket locks and CMEK.
What you configure
Aggregate security logs to a central project, restrict access to sensitive logs, and enable Data Access logs where needed.
Exam cues and common confusions
- Export logs to BigQuery or another system: a log sink in the Log Router.
- Collect logs from all projects centrally: an aggregated sink at organisation or folder level.
- Reduce logging cost: exclusion filters.
Related
Services, comparisons and patterns
- Cloud Monitoring · Service
- BigQuery · Service
- Pub/Sub · Service
- Cloud Storage · Service
Sources
Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.