loganalyzer

Log analyzer. Parses, filters, aggregates, and reports on logs in multiple formats (JSON, syslog, Apache/Nginx, plain text); detects error patterns, spikes, and anomalies. Use when analyzing log files, troubleshooting errors, generating error reports, or when the user mentions logs or debugging with logs.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "loganalyzer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-39c2a923c59cdfa79a64870f85b17e77fbe788f2a60116a3723460f043e9625b. Verify the upstream source and version against https://skillhub.cn/skills/user_d34153ff/loganalyzer before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Log analyzer. Parses, filters, aggregates, and reports on logs in multiple formats (JSON, syslog, Apache/Nginx, plain text); detects error patterns, spikes, and anomalies. Use when analyzing log files, troubleshooting errors, generating error reports, or when the user mentions logs or debugging with logs.

0 Downloads

Introduction source: third_party · user_d34153ff · 1.0.0 Reference

SkillPi interpretation

Tasks
Analyze any log file with the built-in engine:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: log-analyzer
description: Parse, filter, aggregate, and report on log files in multiple formats (JSON, syslog, Apache/Nginx, plain text). Detect error patterns, spikes, and anomalies. Use when analyzing log files, troubleshooting errors, generating error reports, or when the user mentions logs, error analysis, or debugging with logs.

Log Analyzer

Quick Start

Analyze any log file with the built-in engine:

python scripts/analyzer.py <log_file> [options]

Most common usage — get a summary of all errors:

python scripts/analyzer.py app.log --level ERROR --report summary

Filter by time range and keyword:

python scripts/analyzer.py app.log --from "2026-07-20 00:00:00" --search "timeout" --report detailed

Core Options

Option Values Description
--format auto / json / syslog / apache / plain Log format (default: auto-detect)
--level DEBUG / INFO / WARN / ERROR / FATAL Filter by severity
--from "YYYY-MM-DD HH:MM:SS" Start of time range
--to "YYYY-MM-DD HH:MM:SS" End of time range
--search string or regex Filter lines containing pattern
--top number (default 20) Max results to show
--report summary / detailed / errors-only Output detail level
--output file path Save report to JSON file
--no-color flag Disable colored output

Supported Log Formats (auto-detected)

Format Recognized by
JSON lines Each line is valid JSON with timestamp / level / message fields
Syslog <timestamp> <hostname> <process>[<pid>]: <message>
Apache/Nginx Standard combined access log format
Python traceback Traceback (most recent call last): blocks
Plain text [YYYY-MM-DD HH:MM:SS] [LEVEL] message or similar

Workflow

When the user asks to analyze logs, follow this process:

Task Progress:
- [ ] Step 1: Locate the log file(s)
- [ ] Step 2: Determine log format (auto-detect or ask user)
- [ ] Step 3: Run analyzer with appropriate filters
- [ ] Step 4: Review the output with user
- [ ] Step 5: If needed, drill down with --search or narrower time range

Step 1: Locate the file Ask the user for the log file path, or search common locations (/var/log/, ./logs/, *.log).

Step 2: Determine format Default to --format auto. The analyzer detects format automatically. Only specify manually if auto-detection fails.

Step 3: Run analysis Start broad, then narrow:

# 1. First pass — overall summary
python scripts/analyzer.py app.log --report summary

# 2. Focus on errors
python scripts/analyzer.py app.log --level ERROR --top 50

# 3. Time-box a specific window
python scripts/analyzer.py app.log --from "14:00:00" --to "15:00:00" --report detailed

# 4. Search for specific patterns
python scripts/analyzer.py app.log --search "ConnectionError" --report detailed

Step 4: Interpret output The summary report shows:

  • Total lines / errors / warnings
  • Top N most frequent error messages
  • Error distribution over time
  • First and last occurrence timestamps

Step 5: Drill down Based on findings, re-run with tighter filters:

  • Narrow time window around an incident
  • Search for correlated error patterns
  • Export to JSON with --output report.json for further processing

Interpreting Results

Anomaly Detection Signals

The analyzer flags these patterns automatically:

  • Error spike: >3x average error rate in a time window → possible incident
  • New error type: Error message never seen before → possible regression
  • Cascade failure: Multiple unrelated errors within 1 second → root cause may be upstream

When to Escalate

After analysis, suggest next steps:

  • Frequent timeout errors → check network / downstream service health
  • Database connection errors → check connection pool / DB server load
  • Memory errors (OOM) → check memory limits / leak patterns
  • Auth failures spike → possible credential rotation issue or attack

Additional Resources

  • reference.md — complete log format specifications and parsing rules
  • examples.md — real-world analysis examples with expected output

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 支持多种主流日志格式(JSON、syslog、Apache/Nginx、plain text)的自动识别与解析
  • 提供错误模式检测、异常识别和聚合报告功能,适用于系统运维和故障排查高频场景
Trigger Precision90/100

Highlights

  • 触发描述清晰明确,覆盖 logs、error analysis、debugging 等关键场景,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构完整,包含快速开始、核心选项、工作流程和结果解读等清晰章节
  • 提供端到端使用示例和分步执行流程,frontmatter 完整规范
Execution Reliability70/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 中引用了 scripts/analyzer.py 文件,但该文件未包含在 Skill 包中

    Recommendation: 请确保 scripts/analyzer.py 文件存在并完整包含在 Skill 包中,或提供替代执行方案

Highlights

  • 命令行参数设计合理,支持时间范围、关键词、日志级别等多维度过滤
  • 具备异常检测逻辑和后续处理建议,提升分析结果的 actionable 价值
Evidence Verifiability (mean of the first four)87/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 114

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.