Skip to content

Cloud Logging Configuration Basics

Lets an agent set up Google Cloud log buckets, sinks, views, and metrics for a single project

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
2 files

What it does

When installed, the agent gains a guided playbook for configuring Google Cloud Logging within one project: creating regional log buckets with retention and analytics, routing logs with sinks, restricting sensitive logs through views and IAM, and creating logs-based metrics. It runs gcloud commands on your behalf and sorts each action into risk tiers, asking for confirmation before anything that costs money, changes access rules, or permanently discards logs.

Great for

  • Cloud engineers who want an agent to script single-project logging setup with gcloud
  • Teams that need compliance-driven retention in regional log buckets
  • Operators who want approval gates before billing or IAM changes

Skip it if

  • Cross-project or organization-wide logging, which the skill explicitly says not to use for because it is scoped to single projects
  • Production changes without review: the skill tells the agent to run Tier M commands (bucket and view creation) without asking, and it assumes resource names exist rather than checking them
  • Anyone without a Google Cloud account and gcloud access, since the commands do nothing useful without them

Try asking

  • “Create a 365-day regional log bucket with analytics enabled in us-central1 for my compliance team”
  • “Show me how to hide sensitive fields from the _Default log view using a view filter”
  • “Set up a logs-based counter metric that counts OutOfMemory errors in my project”
  • “Route error logs from my project into a custom bucket with a sink”
Step-by-step guide: how to use Cloud Logging Configuration BasicsInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 2 original files, the Apache-2.0 licence and an attribution note.

    cloud-logging-configuration-basics.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip cloud-logging-configuration-basics.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip cloud-logging-configuration-basics.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Review every command before confirming Tier B or Tier D actions; the skill requires you to see the exact literal command and type explicit confirmation for log exclusions and bucket deletion
  • Note the skill's warning that analytics-enabled buckets cannot be downgraded, and that a bucket incurs no charges until a sink routes logs to it
  • The skill tells the agent to skip network discovery in sandboxed environments, so supply exact project IDs and region names yourself rather than expecting lookups

What's inside

  • references/attribution.md
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.