# /cloud-logging-finops: Audit Cloud Logging costs and find logs you can drop

Source: https://trendhub.net/skills/google-skills/cloud-logging-finops
Skill folder: https://github.com/google/skills/tree/main/skills/cloud/cloud-logging-finops
Pack: Google Agent Skills (https://trendhub.net/skills/google-skills)
Works with: Any agent supported by the skills CLI, Claude Code (plugins), Codex (plugins), Antigravity CLI

cloud-logging-finops audits what one project spends on Cloud Logging. It locates the billing export, collects bucket, sink, exclusion and volume data with bundled scripts, attributes cost by service, log stream and severity, and builds an HTML report with ranked savings actions and exclusion filters. Every headline figure can be traced back to its source query.

## When to use it

- Your logging bill grew and you need to know which services and streams drive it.
- You want safe exclusion filters with the expected monthly savings.
- Finance asks for a report that reconciles invoiced logging cost with log volume.

## How it works

1. **Find the billing export**: The agent asks once whether you know the billing export table, have none, or want it searched, and warns that a full search can be slow.
2. **Collect in the background**: It sets up a Python environment and runs the collector, enabling a disabled API only after you approve it.
3. **Ask what matters**: While the collector runs it asks whether you care about attribution, growth, savings, log content or severity posture.
4. **Report honestly**: It says whether figures are invoiced or list-price estimates, quotes savings as a conservative floor, and leaves compliance-sensitive audit logs out.
5. **Deliver and prove**: It builds the HTML report, suggests follow-up questions, and can re-check any figure against live data with a verification script.

## What it steers the agent away from

- Quoting log volume from payload byte sums, which overstate billed volume.
- Exclusion filters that accidentally match every log entry.
- Upgrading a log bucket to Observability Analytics without a direct yes.

## What it can touch

It reads logging, monitoring and BigQuery billing data with your credentials, writes JSON and HTML report files locally, and changes nothing in the project without approval.

## Pairs well with

- `/gcloud`
- `/cloud-logging-query-generation`

## Questions

### Does it need a billing export?

No. Without one it uses list-price estimates over a trailing 30 days and recommends setting up an export for invoiced figures.

### What permissions does it need?

Logging and monitoring viewer roles for every audit, plus BigQuery job and data viewer roles on the export dataset for invoiced costs.
