gemini-cli-extensions/sre · Archived

cloud-logging

🐉 Skill for interacting with and analyzing Google Cloud Logging and Error Reporting. Use this when you need to process large JSON logs from GCP or convert them to Apache format for easier analysis.

Installation

$ npx skills add gemini-cli-extensions/sre --skill cloud-logging

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gemini-cli-extensions/sre.

npx skills add gemini-cli-extensions/sre

Browse all from gemini-cli-extensions/sre

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 82
License LICENSE
Default branch main
Open issues 7
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.3.0
Declared agents gemini
More metadata
author
Riccardo Carlesso
version
0.3.0
status
published

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,005 B
  • docs SUMMARY.md 221 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

Cloud Logging

This skill provides utilities for analyzing logs, errors, and system health across Google Cloud deployments.

  • Prioritize Logs with severity >= "ERROR" as they tend to be less verbose.
  • Constrain logs around the time of investigation (possibly going back a few hours/days to find smoking guns).

Logs DOs and DONT's

Ingesting Logs into an LMM memory can easily saturate your context.

  • [BAD] DO NOT ingest big files. Antipattern: ReadFile path/to/accesslogsraw.json.

It's ok to get raw logs, but also use jq or scripts to read them without polluting your context window. [GOOD] Use simple maniuplation like: jq -r '.[] | .httpRequest.status' to get a list of statuses. * [GOOD] Reduce size with scripts such as scripts/cloudlogging2apachelogs.py <big_logfile.json> (provided in the skill)

  • [BAD] Do not call long-running calls without precautions, eg gcloud logging read

[GOOD] Rather prepend some reasonable timeout 60 gcloud logging read ..., or [BEST] Use the runshellcommand tool with is_background: true and poll the results being dumped to file periodically.

Bundled Scripts

cloudlogging2apachelogs.py

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

Bundled Assets

  • assets/sample_logs.json: A small sample of GCP Cloud Logging JSON for testing conversion scripts.