agentleFS
openamer-maxopenamer-max/max-scripts/skills/system/log-analyzer/SKILL.md

log-analyzer

Skill2 starsChanged 39 days agoApache-2.0View on GitHub

Use for log analysis, error tracking, alerts, and dashboard.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use json-diff, api-tester and 2 more.

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.
  • reaatechSkill

    json-diff

    Also in 3 projects that use this

  • onlyoneamanSkill

    api-tester

    Makes HTTP requests to any URL and returns the response (supports GET, POST, PUT, PATCH, DELETE)

    Also in 3 projects that use this

  • 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 4 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 Skill

Integrierte Log-Analyse für OpenAmer: Error-Rate-Tracking, Pattern-Erkennung, Alert-Generation, Trend-Analyse und HTML-Dashboard.

Script

C:\Users\damir\scripts\log-analyzer.py

Scan-Pfade

QuellePfad
Cron-Output<OPENAMER_HOME>/cron/output/**/*.log
Cron-Output<OPENAMER_HOME>/cron/output/**/*.md
Logs<OPENAMER_HOME>/logs/*.log
Security-CVE~/.security-cve/*.log
Self-Healer~/.self-healer/memory.json

CLI-Usage

python ~/scripts/log-analyzer.py --scan       # Einmaliger Scan
python ~/scripts/log-analyzer.py --watch      # Daemon-Modus (alle 60s)
python ~/scripts/log-analyzer.py --report     # JSON-Report auf stdout
python ~/scripts/log-analyzer.py --dashboard  # HTML-Dashboard erzeugen
python ~/scripts/log-analyzer.py --watch --interval 120  # Watch alle 120s

State

State und Dashboard werden in ~/.log-analyzer/ gespeichert:

  • state.json — letzter Scan, bekannte Patterns, Error-Historie
  • dashboard.html — generiertes HTML-Dashboard

Features

  • Error-Rate: Fehler pro Minute (letzte 5 Minuten / 5)
  • Top 10: Häufigste Fehlermeldungen
  • Trends: Vergleich letzte 30 Min vs. vorherige 30 Min (rising/falling/stable)
  • Pattern-Erkennung: Clustering ähnlicher Fehler durch Exception-Namen, HTTP-Status, CamelCase-Wörter
  • Alert-Generation: Alarm bei > 5 ERROR/min, Info bei neuen Patterns
  • HTML-Dashboard: Dark-Theme mit KPI-Karten, Sparkline, Level-Verteilung, Alerts, Fehler-Tabelle, Pattern-Tabelle, Historie

Cron-Job

Ein Cron-Job führt --scan alle 15 Minuten aus (siehe OpenAmer-Cron jobs.json).

Wartung

Bei neuen Log-Quellen: SCAN_PATHS in log-analyzer.py erweitern. Bei Änderung des Alert-Schwellwerts: ALERT_ERROR_RATE_PER_MIN anpassen.

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.