Gcp Cloud Logging logo

Gcp Cloud Logging

Community
automateyournetwork
gcp-cloud-logging

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.

Overview

Publisherautomateyournetwork
Repositorynetclaw
Skill namegcp-cloud-logging
Stars
680
Forks
189
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by automateyournetwork on GitHub. Read the source before you install it.

Installation

Install the Gcp Cloud Logging AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/gcp-cloud-logging
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/automateyournetwork/netclaw.git /tmp/netclaw
mkdir -p .claude/skills
cp -r /tmp/netclaw/workspace/skills/gcp-cloud-logging .claude/skills/gcp-cloud-logging
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gcp Cloud Logging in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gcp Cloud Logging on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gcp Cloud Logging is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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) or gcloud auth application-default login
  • Requires: GCP_PROJECT_ID environment variable

Available Tools (6)

ToolWhat It Does
list_log_entriesSearch and retrieve log entries — the primary tool for debugging, error hunting, and audit
list_log_namesDiscover what logs exist in a project — find available log sources
get_bucketGet details of a specific log bucket (storage container for logs)
list_bucketsList all log buckets in a project
get_viewGet a specific log view (fine-grained access filter on a bucket)
list_viewsList log views in a bucket

Workflow: VPC Flow Log Analysis

When investigating GCP network traffic:

  1. Discover logs: list_log_names — find compute.googleapis.com/vpc_flows
  2. Query flow logs: list_log_entries filtered by:
    • Source/destination IP
    • Port and protocol
    • Action (ALLOWED/DENIED)
    • Time range
  3. Denied traffic: Filter for reporter="DEST" and denied connections
  4. Top talkers: Aggregate by source/destination IP and bytes
  5. Cross-reference: Use gcp-cloud-monitoring for network metrics during the same period
  6. Report: Traffic analysis with security findings

Workflow: Firewall Log Investigation

When investigating GCP firewall rule activity:

  1. Discover logs: list_log_names — find compute.googleapis.com/firewall
  2. Query firewall logs: list_log_entries filtered by:
    • Rule name
    • Action (ALLOWED/DENIED)
    • Source/destination IP
    • Port
  3. Denied connections: Find blocked traffic patterns
  4. Rule effectiveness: Which rules are hitting most frequently?
  5. Report: Firewall activity summary with recommendations

Workflow: Audit Trail Investigation

When investigating GCP API activity (equivalent of AWS CloudTrail):

  1. Admin activity logs: list_log_entries for cloudaudit.googleapis.com/activity — who created/modified/deleted resources?
  2. Data access logs: list_log_entries for cloudaudit.googleapis.com/data_access — who read what?
  3. Filter by principal: Narrow to specific user or service account
  4. Filter by method: Narrow to specific API calls (e.g., compute.instances.delete)
  5. Time window: Focus on the incident period
  6. Report: Audit timeline with responsible principals and actions

Workflow: Troubleshooting with Logs

When debugging a GCP issue:

  1. Application logs: list_log_entries for the affected service
  2. Error filtering: Filter by severity (ERROR, CRITICAL, EMERGENCY)
  3. Instance logs: Filter by resource.labels.instance_id for specific VMs
  4. Correlate: Match timestamps with gcp-cloud-monitoring alert violations
  5. Bucket check: list_buckets to verify log retention settings
  6. Report: Root cause analysis with log evidence

Common GCP Log Sources

Log NameWhat It Contains
compute.googleapis.com/vpc_flowsVPC flow logs — source/dest IP, port, bytes, packets, action
compute.googleapis.com/firewallFirewall rule hits — allowed/denied connections with rule name
cloudaudit.googleapis.com/activityAdmin activity audit — resource create/modify/delete events
cloudaudit.googleapis.com/data_accessData access audit — read operations on resources
cloudaudit.googleapis.com/system_eventSystem events — Google-initiated actions (live migration, etc.)
compute.googleapis.com/shielded_vm_integrityShielded VM boot integrity verification
dns.googleapis.com/dns_queriesCloud DNS query logs
loadbalancing.googleapis.com/requestsLoad balancer access logs
networksecurity.googleapis.com/firewall_threatCloud IDS / Firewall threat detection

Log Query Filter Examples

# VPC flow logs — denied traffic to port 443
resource.type="gce_subnetwork"
logName="projects/PROJECT/logs/compute.googleapis.com%2Fvpc_flows"
jsonPayload.disposition="DENIED"
jsonPayload.connection.dest_port=443

# Firewall — denied SSH attempts
resource.type="gce_subnetwork"
logName="projects/PROJECT/logs/compute.googleapis.com%2Ffirewall"
jsonPayload.disposition="DENIED"
jsonPayload.connection.dest_port=22

# Audit — who deleted VMs in the last hour
logName="projects/PROJECT/logs/cloudaudit.googleapis.com%2Factivity"
protoPayload.methodName="compute.instances.delete"
timestamp>="2026-01-01T00:00:00Z"

# DNS queries from specific source
resource.type="dns_query"
jsonPayload.sourceIP="10.0.1.50"

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 ID
  • GOOGLE_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.

Frequently asked questions

What does the Gcp Cloud Logging AI skill do?

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.

Why use Gcp Cloud Logging on TypingMind?

Because you install it once and use it with any model. Gcp Cloud Logging is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gcp Cloud Logging in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/gcp-cloud-logging. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Gcp Cloud Logging?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gcp Cloud Logging?

As many as you like. As long as a model supports skills, you can use Gcp Cloud Logging with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gcp Cloud Logging AI skill free?

Yes. It is published on GitHub by automateyournetwork under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇