Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

cloud-logging-configuration-basics

Configure Cloud Logging buckets, views, sinks, exclusions, and logs-based metrics with gcloud commands.

  • Part of google/skills
  • 6.5k installs
  • DevOps & Self-hosting · Monitoring

When to use it

You have a single Google Cloud project with logs flowing and need to set retention, hide sensitive logs, or cut logging costs.

For example

You say

Use cloud-logging-configuration-basics to create a 365-day regional bucket in us-central1 for project my-proj and route audit logs into it.

You get
  • Bucket creation command
  • Sink routing command
  • Bucket verification step

How it works

  • Sensitive logs are hidden from the default view by default; discarding them from storage needs typed confirmation.
  • Cost-cutting exclusions and sampling discard logs immediately and require explicit typed confirmation.
  • Upgrading a bucket to Observability Analytics cannot be undone.

Before installing

Requires the gcloud CLI installed and a single-project setup; cross-project or multi-project logging is out of scope.