agentleFS
trac3r00trac3r00/agent-skills/skills/log-analyzer/SKILL.md

log-analyzer

Skill0 starsChanged 3 months agoMITView on GitHub

Groups a log file's errors by pattern and ranks offenders — normalizes volatile tokens (timestamps, UUIDs, IPs, paths, numbers) so "connection refused to db-01" and "db-99" count as one problem seen N times. Handles both level-tagged logs (ERROR/WARN/INFO) and exception-style stack logs (DaemonError:, Traceback). Offline, stdlib-only, deterministic.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use test-generator and security-audit.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • u9401066Skill

    test-generator

    Generate comprehensive test suites including static analysis, unit tests, integration tests, E2E tests, and coverage reports. Triggers: TG, test, 測試, 寫測試, coverage, 覆蓋率, pytest, unittest, 驗證.

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

The file

Files
SKILL.md

Log Analyzer

A 50,000-line log is not a report. This is.

Commands

python3 scripts/log_analyzer.py app.log
python3 scripts/log_analyzer.py app.log --level ERROR --top 10
python3 scripts/log_analyzer.py app.log --budget-errors 0     # CI: fail on any
python3 scripts/log_analyzer.py app.log --max-patterns 5      # CI: error diversity cap
python3 scripts/log_analyzer.py daemon.log --json

What it reports

  • Total lines, error count, warning count, distinct pattern count
  • Ranked patterns with occurrence counts and one verbatim example each

Volatile tokens (timestamps, UUIDs, hex, IPs, host:port, paths, numbers) are normalized to <tokens> so the same failure from different hosts/times groups into one pattern. Exception-style lines (FooError:, Traceback, FAILED) count as errors even without an ERROR level token.

Exit codes

0 = no errors / within budget, 1 = errors found or over budget, 2 = input error.

Pairs with

systematic-debugging (what to do with the top pattern once you have it), diff-review (the diff-level gate upstream of the runtime log).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.