Help us improve
Share bugs, ideas, or general feedback.
From sre-extension
Interacts with and analyzes Google Cloud Logging and Error Reporting. Converts large JSON logs to Apache format for easier LLM processing. Provides best practices and bundled scripts.
npx claudepluginhub gemini-cli-extensions/sre --plugin sre-extensionHow this skill is triggered — by the user, by Claude, or both
Slash command
/sre-extension:cloud-loggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides utilities for analyzing logs, errors, and system health across Google Cloud deployments.
Provides GCP observability best practices: structured JSON logging, query filters, metrics/logs/traces guidance, alert policies, and log cost optimization.
Parses JSON, Apache, and custom app logs to detect error trends, anomalies, performance metrics, user patterns, and system health; provides root cause analysis and fix recommendations.
Analyzes application logs to detect slow requests, recurring errors, and resource anomalies with summaries and optimization suggestions. Useful for performance troubleshooting and debugging.
Share bugs, ideas, or general feedback.
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.