From sre-extension
Analyzes Google Cloud Logging and Error Reporting exports, converting large JSON logs to Apache format for token-efficient LLM processing.
How 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.
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.npx claudepluginhub gemini-cli-extensions/sre --plugin sre-extensionProvides 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 JSONL and other log files using rg and jq: structured extraction, cross-log correlation, timeline reconstruction, pattern search.