log-dive

log-dive is a skill for Claude Code, Codex from cacheforge-ai/cacheforge-skills. It costs 42 tokens per session (3,052 once invoked), scanned A, original, MIT.

A read-only search tool for logs in Loki, Elasticsearch or OpenSearch, and AWS CloudWatch. Logs are records of what software and services did, and the tool turns plain-language requests into each system's query format.

In plain words
What is it for?
Use it to find errors, trace what happened in a service, inspect log sources, or follow recent logs while keeping the results within the current conversation.
Why use it?
It lets you investigate incidents across different log systems without learning every query language.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to find errors, trace what happened in a service, inspect log sources, or follow recent logs while keeping the results within the current conversation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cacheforge-ai/cacheforge-skills/log-dive
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.

Any agent
npx skills add cacheforge-ai/cacheforge-skills --skill log-dive
Clone the repo
git clone --depth 1 https://github.com/cacheforge-ai/cacheforge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for log-dive

README.md
[![agentmods](https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/log-dive/github.svg)](https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/log-dive)
Your own site
<a href="https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/log-dive"><img src="https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/log-dive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for log-dive

Your own site · 80×15
<a href="https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/log-dive"><img src="https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/log-dive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00042 $0.03052
Opus 5.5 $0.00017 $0.01221
Sonnet 5.5 $0.00008 $0.00610
Haiku 4.5 $0.00004 $0.00305

Measured 1mo ago against content hash 1b9b4f4c7af4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

log-dive scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/log-dive-cw.sh, scripts/log-dive-es.sh, scripts/log-dive-loki.sh, …), 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| "curl: command not found" | curl not installed | `apt install curl` or `brew install curl` |
skills/log-dive/SKILL.md · 335 lines

How it starts

The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Search logs across Loki, Elasticsearch/OpenSearch, and AWS CloudWatch from a single interface. Ask in plain English; the skill translates to the right query language.

⚠️ Sensitive Data Warning: Logs frequently contain PII, secrets, tokens, passwords, and other sensitive data. Never cache, store, or repeat raw log content beyond the current conversation. Treat all log output as confidential.

Activation

This skill activates when the user mentions:

  • "search logs", "find in logs", "log search", "check the logs"
  • "Loki", "LogQL", "logcli"
  • "Elasticsearch logs", "Kibana", "OpenSearch"
  • "CloudWatch logs", "AWS logs", "log groups"
  • "error logs", "find errors", "what happened in [service]"
  • "tail logs", "follow logs", "live logs"
  • "log backends", "which log sources", "log indices", "log labels"
  • Incident triage involving log analysis
  • "log-dive" explicitly

Permissions

permissions:
  exec: true          # Required to run backend scripts
  read: true          # Read script files
  write: false        # Never writes files — logs may contain secrets
  network: true       # Queries remote log backends

Example Prompts

  1. "Find error logs from the checkout service in the last 30 minutes"
  2. "Search for timeout exceptions across all services"
  3. "What log backends do I have configured?"
  4. "List available log indices in Elasticsearch"
  5. "Show me the labels available in Loki"
  6. "Tail the payment-service logs"
  7. "Find all 5xx errors in CloudWatch for api-gateway"
  8. "Correlate errors between user-service and payment-service"
  9. "What happened in production between 2pm and 3pm today?"

Backend Configuration

Each backend uses environment variables. Users may have one, two, or all three configured.

Loki

Variable Required Description
LOKI_ADDR Yes Loki server URL (e.g., http://loki.internal:3100)
LOKI_TOKEN No Bearer token for authentication
LOKI_TENANT_ID No Multi-tenant header (X-Scope-OrgID)

Read the full file on GitHub · 335 lines

Files

What ships with it

9 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. 1mo ago First seen · 335 lines · 42 tokens per session scan A 1b9b4f4c7af4

Subscribe to this mod's changes

log-dive is a skill published in the GitHub repository cacheforge-ai/cacheforge-skills (10 stars, last pushed 7mo ago), licensed MIT. It adds 42 tokens to every session and 3,052 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

k8s-incident-triage

Read-only Kubernetes incident triage using kubectl. Accepts natural language or structured input. Produces root-cause hypotheses, evidence, and next-step commands.

initializ/forge · 41 tokens

open_rca_diagnosis

A structured method for finding the root cause of failures in microservices by examining measurements, request traces, and logs. It uses thresholds and cross-checks to connect symptoms to causes.

derisk-ai/OpenDerisk · 36 tokens

cross-source-correlation

Correlate near-in-time events across PR merges, deploys, monitoring (Sentry/NewRelic/Datadog/AppDynamics) and ticket trackers (Jira/Azure DevOps) into confidence-scored clusters that answer "which deploy caused this bug" without manual tab-switching.

aozyildirim/Agena · 64 tokens

design-incident-response

Use when creating or improving an incident response process for a production system or operational team.

jeffreytse/grimoire-core · 21 tokens

sre-runbooks

Safe-by-default DevOps/SRE runbook automation for incident response, postmortems, on-call handovers, and operational troubleshooting. Implements Google SRE principles with agent-safe execution patterns including dry-run modes, human approval gates, and blast-radius limits.

JPeetz/agent-skills · 56 tokens

k8s-logging-pipeline

A troubleshooting workflow for collecting logs from Kubernetes, a system for running containerised applications. It covers Fluentd and Filebeat, tools commonly used to collect and forward those logs.

kudig-io/kudig-database · 26 tokens