← 返回 Skills 市场
johnnywang2001

Log Analyzer

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
266
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install jrv-log-analyzer
功能描述
Analyze log files to detect error patterns, aggregate by severity, group repeated errors by fingerprint, and flag anomaly time windows. Use when asked to ana...
使用说明 (SKILL.md)

Log Analyzer

Analyze any text-based log file for error patterns, severity breakdown, and anomaly detection.

Quick Start

python3 scripts/analyze_logs.py \x3Clogfile>
python3 scripts/analyze_logs.py app.log --top 20 --severity ERROR
python3 scripts/analyze_logs.py server.log --json --since "2026-03-01"

Features

  • Severity classification — auto-detects FATAL, ERROR, WARN, INFO, DEBUG from log lines
  • Error fingerprinting — groups similar errors by stripping variable parts (IPs, UUIDs, PIDs, timestamps)
  • Anomaly detection — flags hours with error rates >2x the average
  • Timestamp parsing — handles ISO 8601, syslog, and nginx/apache formats
  • Flexible output — human-readable report or --json for piping

Options

Flag Description
--top N Number of top error patterns (default: 15)
--severity LEVEL Minimum severity filter (FATAL, ERROR, WARN, INFO, DEBUG)
--json Output structured JSON
--since TIMESTAMP Only analyze lines after this timestamp

Workflow

  1. Run the analyzer on the target log file
  2. Review severity breakdown for overall health
  3. Check top error patterns for recurring issues
  4. Look at anomaly hours for incident windows
  5. Use --json output to feed into other tools or reports
安全使用建议
This skill appears to do what it says: analyze a log file you point it at and produce summaries. Before using it on sensitive systems: 1) inspect the script locally (it is included) and run it in a controlled environment; 2) be aware of two bugs — the '--since' timestamp filter uses simple string comparison (may be incorrect for varying timestamp formats) and the '--severity' option is computed but not enforced (it won't filter lines as expected); 3) ensure you only pass log files you intend to share with the tool (it reads the file you give it and nothing else); and 4) consider validating timestamp parsing for your log format and testing on a copy of logs if they contain sensitive PII. Overall there are no network calls or secret exfiltration code present.
功能分析
Type: OpenClaw Skill Name: jrv-log-analyzer Version: 1.0.0 The skill is a standard log analysis tool designed to categorize log levels, group similar errors via fingerprinting, and identify anomaly windows. The Python script (scripts/analyze_logs.py) uses only standard libraries and contains no network calls, shell execution, or data exfiltration logic; it simply processes text files provided as input. The SKILL.md instructions are well-aligned with the script's functionality and do not contain any prompt injection attempts.
能力评估
Purpose & Capability
Name/description match the included Python analyzer. The files and runtime instructions are limited to parsing and summarizing a user-specified log file; nothing requires cloud credentials, unrelated binaries, or system-wide configuration.
Instruction Scope
SKILL.md instructs running the bundled script on the target logfile and the script operates only on the file path the user supplies. There are some implementation issues: the '--since' comparison uses raw string comparison of extracted timestamp substrings (can give incorrect results across formats) and the computed 'severity_filter' is never actually applied to skip lines — the '--severity' flag is documented but not enforced. These are functional/robustness problems, not signs of hidden exfiltration or scope creep.
Install Mechanism
No install spec (instruction-only plus a small Python script included). No remote downloads or package installs are performed by the skill, minimizing installation risk.
Credentials
The skill declares no environment variables, credentials, or config paths and the code does not read env vars or external config files. It only reads the logfile path provided by the user.
Persistence & Privilege
The skill does not request permanent/always-on presence, does not modify agent configuration, and does not attempt to persist credentials or alter other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jrv-log-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jrv-log-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: severity classification, error fingerprinting, anomaly detection, JSON output
元数据
Slug jrv-log-analyzer
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Log Analyzer 是什么?

Analyze log files to detect error patterns, aggregate by severity, group repeated errors by fingerprint, and flag anomaly time windows. Use when asked to ana... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 266 次。

如何安装 Log Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install jrv-log-analyzer」即可一键安装,无需额外配置。

Log Analyzer 是免费的吗?

是的,Log Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Log Analyzer 支持哪些平台?

Log Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Log Analyzer?

由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。

💬 留言讨论