automateyournetwork/netclaw/gcp-cloud-logging
Claude Code and agent skill by automateyournetwork/netclaw
- community
Checking that the SKILL.md file is still in the repository.
Google Cloud Logging — log search, VPC flow logs, firewall logs, audit logs, log buckets and views. Use when searching GCP logs, investigating denied VPC flow traffic, checking who deleted a VM, analyzing firewall rule hits, or troubleshooting a GCP application error.
Install
npx vskill@latest install automateyournetwork/netclaw/gcp-cloud-loggingSKILL.md
The same SKILL.md was published earlier as automateyournetwork/netclaw/gcp-cloud-logging.
GCP Cloud Logging
MCP Server
- Endpoint:
https://logging.googleapis.com/mcp(Streamable HTTP) - Auth: OAuth 2.0 via Google IAM — service account key (
GOOGLE_APPLICATION_CREDENTIALS) orgcloud auth application-default login - Requires:
GCP_PROJECT_IDenvironment variable
Available Tools (6)
| Tool | What It Does | |
|---|---|---|
list_log_entries | Search and retrieve log entries — the primary tool for debugging, error hunting, and audit | |
list_log_names | Discover what logs exist in a project — find available log sources | |
get_bucket | Get details of a specific log bucket (storage container for logs) | |
list_buckets | List all log buckets in a project | |
get_view | Get a specific log view (fine-grained access filter on a bucket) | |
list_views | List log views in a bucket |
Workflow: VPC Flow Log Analysis
When investigating GCP network traffic:
- Discover logs:
list_log_names— findcompute.googleapis.com/vpc_flows - Query flow logs:
list_log_entriesfiltered by:
- Source/destination IP
- Port and protocol
- Action (ALLOWED/DENIED)
- Time range
- Denied traffic: Filter for
reporter="DEST"and denied connections - Top talkers: Aggregate by source/destination IP and bytes
- Cross-reference: Use
gcp-cloud-monitoringfor network metrics during the same period - Report: Traffic analysis with security findings
Workflow: Firewall Log Investigation
When investigating GCP firewall rule activity:
- Discover logs:
list_log_names— findcompute.googleapis.com/firewall - Query firewall logs:
list_log_entriesfiltered by:
- Rule name
- Action (ALLOWED/DENIED)
- Source/destination IP
- Port
- Denied connections: Find blocked traffic patterns
- Rule effectiveness: Which rules are hitting most frequently?
- Report: Firewall activity summary with recommendations
Workflow: Audit Trail Investigation
When investigating GCP API activity (equivalent of AWS CloudTrail):
- Admin activity logs:
list_log_entriesforcloudaudit.googleapis.com/activity— who created/modified/deleted resources? - Data access logs:
list_log_entriesforcloudaudit.googleapis.com/data_access— who read what? - Filter by principal: Narrow to specific user or service account
- Filter by method: Narrow to specific API calls (e.g.,
compute.instances.delete) - Time window: Focus on the incident period
- Report: Audit timeline with responsible principals and actions
Workflow: Troubleshooting with Logs
When debugging a GCP issue:
- Application logs:
list_log_entriesfor the affected service - Error filtering: Filter by severity (ERROR, CRITICAL, EMERGENCY)
- Instance logs: Filter by
resource.labels.instance_idfor specific VMs - Correlate: Match timestamps with
gcp-cloud-monitoringalert violations - Bucket check:
list_bucketsto verify log retention settings - Report: Root cause analysis with log evidence
Common GCP Log Sources
| Log Name | What It Contains | |
|---|---|---|
compute.googleapis.com/vpc_flows | VPC flow logs — source/dest IP, port, bytes, packets, action | |
compute.googleapis.com/firewall | Firewall rule hits — allowed/denied connections with rule name | |
cloudaudit.googleapis.com/activity | Admin activity audit — resource create/modify/delete events | |
cloudaudit.googleapis.com/data_access | Data access audit — read operations on resources | |
cloudaudit.googleapis.com/system_event | System events — Google-initiated actions (live migration, etc.) | |
compute.googleapis.com/shielded_vm_integrity | Shielded VM boot integrity verification | |
dns.googleapis.com/dns_queries | Cloud DNS query logs | |
loadbalancing.googleapis.com/requests | Load balancer access logs | |
networksecurity.googleapis.com/firewall_threat | Cloud IDS / Firewall threat detection |
Log Query Filter Examples
Important Rules
- Remote MCP server — hosted by Google, no local install needed
- OAuth 2.0 authentication — uses IAM for access control
- Project-scoped — logs are scoped to the configured GCP project
- Log queries have cost implications — Cloud Logging charges for data scanned beyond free tier (50 GB/month free)
- Retention varies — Admin activity logs: 400 days, Data access logs: 30 days (default), VPC flow logs: depends on bucket config
- Record in GAIT — log all investigations for audit trail
Environment Variables
GCP_PROJECT_ID— Google Cloud project IDGOOGLE_APPLICATION_CREDENTIALS— Path to service account key JSON file
Failure Behavior
- On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
- For a confirmed read-only call, check connectivity and retry once if appropriate. For any call that changes state or sends a message, a timeout does not prove the action failed: inspect current state or delivery status before retrying, preserve the required approval/change gates, and do not repeat an action whose outcome is unknown.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspace/skills/gcp-cloud-logging/SKILL.md
Popularity
- Repository stars
- 682
- Repository forks
- 189
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/automateyournetwork/netclaw/gcp-cloud-logging)