cloud-logging

A guide for analyzing Google Cloud Logging and Error Reporting data. Logs are records of events in cloud systems, while Error Reporting groups and summarizes application errors.

In plain words
What is it for?
Use it to focus on serious errors, limit logs to an incident's time window, extract selected fields, or convert JSON logs into Apache-style logs.
Why use it?
It helps investigate system health without loading huge raw log files into the coding agent's working context.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gemini-cli-extensions/sre/cloud-logging
Any agent
npx skills add gemini-cli-extensions/sre --skill cloud-logging
Clone the repo
git clone --depth 1 https://github.com/gemini-cli-extensions/sre

Made for: Claude Code, Codex.

Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 481 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.00481
Opus 5 $0.00021 $0.00241
Sonnet 5 $0.00008 $0.00096
Haiku 4.5 $0.00004 $0.00048

Measured 3d ago against content hash 43d6268ce40a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloud-logging scanned grade A with 0 findings against 26 rules in 11 categories β€” prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency β€” measured 3d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/cloudlogging2apachelogs_test.py, scripts/cloudlogging2apachelogs.py), listed below but not scanned β€” reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cloud-logging/SKILL.md Β· 51 lines

What it actually says

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/access_logs_raw.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 run_shell_command 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.
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen Β· 51 lines Β· 42 tokens per session scan A 43d6268ce40a

Subscribe to this mod's changes

cloud-logging is a skill published in the GitHub repository gemini-cli-extensions/sre (82 stars, last pushed 9d ago), licensed Apache-2.0. It adds 42 tokens to every session and 481 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

huggingface-spaces

Build, deploy, and maintain applications on Hugging Face Spaces β€” Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community grants. Use whenever the user asks to create or host an app on Hugging Face, port code onto ZeroGPU, fix a Space that won't…

huggingface/skills Β· 106 tokens

kagent-dev

Development guide for kagent's v1alpha3 Harness and AgentTemplate CRDs, AgentInstance gRPC control plane, upstream A2A integration, Substrate runtime provisioning, tests, generation, and PR workflow. Use for any implementation, debugging, review, or CI task in the kagent repository.

kagent-dev/kagent Β· 65 tokens

timoni

Use when deploying applications to Kubernetes with Timoni. Covers installing and upgrading module instances from OCI registries, composing multi-app deployments with bundles, injecting values from clusters or CI with runtimes, targeting multiple clusters, and authoring, testing, signing and publishing modules with CUE.

stefanprodan/timoni Β· 59 tokens

azmon-mirroredcatalogs-operations-cli

Brings Azure Monitor, Application Insights, and Log Analytics telemetry into Fabric as Eventhouse external delta tables and correlates it with business data. Use to onboard observability data, judge whether latency or availability affected revenue, or build a Real-Time dashboard and Operations Agent over it.

microsoft/skills-for-fabric Β· 66 tokens

durable-objects

Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases…

cloudflare/skills Β· 76 tokens

ship-web-games

Package, deploy, and verify a playable Three.js or web game. Use for release builds, asset delivery, private/public deployment, production smoke tests, browser proof, release notes, rollback readiness, and cleanup of temporary QA resources.

MengTo/Skills Β· 50 tokens