← 返回
数据分析 中文

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...
分析日志文件以检测错误模式,按严重程度聚合,通过指纹归组重复错误,并标记异常时间窗口。
johnnywang2001
数据分析 clawhub v1.0.0 1 版本 99813.1 Key: 无需
★ 0
Stars
📥 534
下载
💾 1
安装
1
版本
#latest

概述

Log Analyzer

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

Quick Start

python3 scripts/analyze_logs.py <logfile>
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

FlagDescription
-------------------
--top NNumber of top error patterns (default: 15)
--severity LEVELMinimum severity filter (FATAL, ERROR, WARN, INFO, DEBUG)
--jsonOutput structured JSON
--since TIMESTAMPOnly 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,406
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,086
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 59,971