Log Triage

Summarizes local application or identity logs from a JSONL or text file. Counts levels, groups repeated messages, and prints the latest errors. Use when the user pastes logs, names a log file, or asks to triage, investigate, or summarize errors without a live Elastic or SIEM cluster.

kelvint-cli Updated

File contents

Log triage

Read a local log file. Do not call a remote cluster, VPN, or employer API.

When to use

The user has a .jsonl, .log, or .txt export and wants a short incident-style summary.

How to run

python3 skills/log-triage/scripts/triage.py PATH_TO_LOG

From this repo:

python3 skills/log-triage/scripts/triage.py skills/log-triage/fixtures/sample.jsonl

The script accepts JSON Lines objects with timestamp, level, source, and message. Plain text lines are treated as messages with level INFO, or ERROR if the line contains error or fail.

What to report

  1. Time range and line count.
  2. Counts by level.
  3. Top repeated messages (max 5).
  4. Last 5 error-level lines, verbatim.
  5. One sentence on what to check next. Do not invent a root cause.

Rules

  • Do not send log contents to a third-party API unless the user asks.
  • Redact emails, tokens, and hostnames that look internal before quoting in chat, unless the file is the bundled fixture.
  • If the file is empty or unreadable, say so and stop.

kelvint-cli/cursor-agent-skills/tree/main/skills/log-triage commit 28833287d6

Frequently asked questions

npx skillmds@latest add kelvint-cli/log-triage