Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gcp-audit-logs

Skill by sickn33

gcp-audit-logs configures Google Cloud Audit Logs for compliance, security investigation and operational monitoring. It covers log routing, BigQuery analysis and alerting for GCP activity.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gcp-audit-logs

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/gcp-audit-logs ~/.claude/skills/gcp-audit-logs

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gcp-audit-logs in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

gcp-audit-logs is an agent skill that guides the setup of Google Cloud Audit Logs for compliance, security investigation and operational monitoring. It describes the four audit log types (admin activity, data access, system event and policy denied) and shows gcloud commands to enable data access logs at organization or project level.

It also covers log sinks that export audit logs to BigQuery, Cloud Storage and Pub/Sub, sample Cloud Logging queries, BigQuery analysis queries for IAM changes, deletions and service account key creation, and log-based metrics for alerting. The source says to confirm scope first, preserve existing IAM policy bindings, and verify sink delivery with approved test operations. It is aimed at security and cloud operations teams running compliance reviews on GCP.

Written from the project's SKILL.md and checked against it.

What it can do

  • Audit log typesExplains admin activity, data access, system event and policy denied logs.
  • Data access loggingShows how to enable ADMIN_READ, DATA_READ and DATA_WRITE audit configs.
  • Log sinksCreates sinks to BigQuery, a Cloud Storage archive and a Pub/Sub topic.
  • Logging queriesProvides gcloud logging read queries for IAM changes, deletions and data access.
  • BigQuery analysisProvides SQL for destructive operations, IAM changes and failed operations.
  • Log-based metricsCreates log-based metrics for IAM policy and firewall rule changes.

What you need

  • Google Cloud organization or projects with audit log access
  • Google Cloud CLI (gcloud, bq and gsutil)
  • BigQuery for exported audit log analysis
  • Cloud Storage and Pub/Sub if using those sinks

Try asking

  • Set up audit log sinks from my GCP organization to BigQuery
  • Write a query to find IAM policy changes in the last 7 days
  • Show service account key creation events from the last 90 days

Good to know

  • The source says to apply controls through your own change process.
  • SQL examples assume date-sharded export tables and must be adapted to the real schema.
  • Alerting needs a log-based metric and a Monitoring policy built separately.
  • Data access logs must be explicitly enabled and can be costly at high volume.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gcp-audit-logs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB
  • references/details.md3 KB

Alternatives to gcp-audit-logs

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

gcp-audit-logs: common questions

Does this skill change GCP settings by itself?

The source provides gcloud, bq and gsutil commands that modify IAM policies, sinks and storage. It says to confirm scope and preserve existing bindings before applying them.

Which audit log types does it cover?

It covers admin activity, data access, system event and policy denied logs. It notes which are always on and which must be enabled.

Where can audit logs be exported?

The source shows sinks to BigQuery, a Cloud Storage archive with a 7-year retention setting, and a Pub/Sub topic for SIEM streaming.

How do I install gcp-audit-logs?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gcp-audit-logs free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is gcp-audit-logs safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gcp-audit-logs?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

gcp-audit-logs Install

Add to stack

Loading.