/sre-extension:cloud-loggingfrom sre-extension
Analyzes Google Cloud Logging and Error Reporting data, converts JSON logs to Apache format for efficient LLM processing, and provides best practices for log investigation.
Ships in sre-extension. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill provides utilities for analyzing logs, errors, and system health across Google Cloud deployments.
severity >= "ERROR" as they tend to be less verbose.Ingesting Logs into an LMM memory can easily saturate your context.
ReadFile path/to/access_logs_raw.json.
jq or scripts to read them without polluting your context window.jq -r '.[] | .httpRequest.status' to get a list of statuses.scripts/cloudlogging2apachelogs.py <big_logfile.json> (provided in the skill)gcloud logging read
timeout 60 gcloud logging read ..., orrun_shell_command tool with is_background: true and poll the results being dumped to file periodically.Converts GCP Cloud Logging JSON exports into a format loosely resembling Apache Combined Log format. This is much more token-efficient for the LLM.
Usage:
python3 scripts/cloudlogging2apachelogs.py path/to/logs.json
Testing: You can verify the script works by running its test:
python3 scripts/cloudlogging2apachelogs_test.py
assets/sample_logs.json: A small sample of GCP Cloud Logging JSON for testing conversion scripts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gcp-logging, log-analysis, error-reporting, apache-logs, jq-tips
npx claudepluginhub googlecloudplatform/sre-plugin --plugin sre-extension16 skills in this plugin
/anomaly-detection🐉 Detects anomalies in time-series data from various sources./cloud-monitoring🐉 Skill for interacting with Google Cloud Monitoring (CM) via APIs to avoid large context bloat. Produces nice short synoptic "gists" of graphs/data-ingestion🐉 Fetches and parses time-series data from various sources./gcp-architecture-discovery🐉 Discover and map GCP infrastructure architecture including compute, networking, storage, and service dependencies./gcp-mcp-setup🐉 Use when the user wants to set up Google Managed MCP (OneMCP) servers for their CLI environment. Automates enabling services, MCP servers, generating API keys, and configuring the MCP settings file for the active harness (Gemini, Antigravity, or Copilot CLI)./gcp-playbooks🐉 Use when you need to follow established SRE playbooks for GCP/GKE investigations, including infrastructure discovery and common mitigation steps.Other plugins' skills for the same job