Skip to content

Cloud Logging FinOps Auditor

Audits Google Cloud Logging spend and generates a cost-reduction report with exclusion filters

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

What it does

Once installed, the agent can investigate what a Google Cloud project spends on Cloud Logging: which services, log streams and severities generate the most log volume and cost, and which log sinks route them. It can reconcile billing export costs with volume metrics and produce a FinOps report with charts and copy-paste log exclusion filters. It is designed to ask the user a few questions first and to make changes only with approval.

Great for

  • Cloud engineers or FinOps staff reducing a Google Cloud logging bill
  • Teams that want a scheduled, read-only audit of logging waste with a written report

Skip it if

  • Writing or running log queries for debugging (the skill says to use a different skill for that)
  • Anyone who cannot review commands before they run, since the skill executes Python scripts and gcloud commands against a live project and may enable APIs or upgrade log buckets with approval

Try asking

  • “Audit the Cloud Logging costs for my project my-prod-project and tell me the top contributors”
  • “Generate a FinOps report with exclusion filters to reduce our log spend”
  • “Find logging waste in the active gcloud project and suggest sink exclusions”
Step-by-step guide: how to use Cloud Logging FinOps AuditorInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

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

    cloud-logging-finops.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

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

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip cloud-logging-finops.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

  • Point the audit at a known billing export table with --billing-table to avoid slow searches across the whole billing account
  • Review every exclusion filter before applying it, since excluding logs is irreversible for those entries and may remove audit data
  • Use a read-only identity with viewer roles when running the audit to limit what the scripts can access

What's inside

  • references/attribution.md
  • references/executive_summary_authoring.md
  • scripts/actions.py
  • scripts/aggregations.py
  • scripts/analytics.py
  • scripts/attribution.py
  • scripts/billing.py
  • scripts/build_report.py
  • scripts/collect_logging_data.py
  • scripts/constants.py
  • scripts/enable_log_analytics.py
  • scripts/exclusion_rules.py
  • scripts/inventory.py
  • scripts/messages.py
  • 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.