All GCP services

GCP · Operations

Cloud Logging

Centralized logs across GCP.

Official docs

Overview

Cloud Logging ingests structured logs from GCP, agents and apps with retention, sinks and log-based metrics.

When to use it

  • Debug failed tests in deployed envs
  • Build SLO-aware QA dashboards

Setup

  1. Logging is on by default for most GCP services.
  2. Define log sinks to BigQuery/GCS/Pub/Sub for analysis.

How to use

Query
gcloud logging read 'resource.type=cloud_run_revision AND severity>=ERROR' --limit=20

QA use cases

  • Correlate failed e2e runs with backend errors via trace IDs.