📊
DataPython

Log Analyzer

by huifer

Log Analyzer is a Data skill for Claude Code, published by huifer in skill-security-scan.

169 stars13 forkson huifer/skill-security-scanAdded 2026/09/08+1% in starsRepository updated 2025/12/29
claude-codeskills
Install in seconds
Install Log Analyzer
Copy Log Analyzer into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/huifer/skill-security-scan/tree/main/.claude/skills/log-analyzer ~/.claude/skills/log-analyzer

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/huifer/skill-security-scan.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/log-analyzer/SKILL.md in huifer/skill-security-scan
Installs to
~/.claude/skills/log-analyzer
Collection
One of 2 skills cataloged from this repository
Category
Data812 skills

What Log Analyzer does

Log Analyzer reads text log files to find errors, exceptions, slow queries, and patterns. Use it to debug application issues, review performance bottlenecks, and summarize log trends.

Log Analyzer is cataloged under Data on DirSkills. Log Analyzer comes from a repository tagged claude-code and skills.

Documentation

README

Log Analyzer - 日志分析工具

功能描述

这是一个安全可靠的日志分析 Skill,用于帮助开发者快速分析和理解应用日志文件。

主要功能

  1. 错误识别 - 自动识别日志中的错误和异常
  2. 性能分析 - 检测慢查询和性能瓶颈
  3. 统计报告 - 生成错误统计和趋势分析
  4. 模式匹配 - 根据自定义规则搜索日志模式

使用场景

  • 分析应用错误日志
  • 监控系统性能指标
  • 调试生产环境问题
  • 审计安全事件

使用方法

当用户要求分析日志时:

1. 识别日志文件

查找并读取以下位置的日志文件:

  • ./logs/*.log
  • ./var/log/*.log
  • 用户指定的日志文件路径

2. 分析日志内容

# 读取日志文件内容
# 使用正则表达式匹配错误模式:
# - ERROR, WARN, CRITICAL
# - Exception, Traceback
# - HTTP 错误码(4xx, 5xx)

3. 生成分析报告

  • 错误总数统计
  • 错误类型分布
  • 时间范围分析
  • Top 错误排行

4. 输出结果

以清晰的 Markdown 格式输出分析结果,包括:

  • 执行摘要
  • 详细错误列表
  • 改进建议

安全说明

  • ✅ 只读取日志文件,不修改任何文件
  • ✅ 不执行任何系统命令
  • ✅ 不访问网络资源
  • ✅ 不读取敏感配置文件

依赖项

  • Python 3.9+
  • 标准库:re, datetime, collections

示例用法

用户:分析当前目录的 application.log
工具:[分析日志内容]
输出:✅ 发现 23 个错误,主要是数据库连接超时

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Log Analyzer

  • What else does huifer publish alongside Log Analyzer?

    Log Analyzer is one of 2 skills that DirSkills catalogs from huifer/skill-security-scan, the repository it ships in. Its siblings there include Data Optimizer Pro. Each one is a separate skill with its own page in this directory, installs the same way Log Analyzer does, and is maintained by huifer in that same repository. The rest of the collection is listed on the huifer/skill-security-scan page.

  • How does Log Analyzer compare to other Data skills?

    Log Analyzer ranks #750 by stars among the 812 Data skills in this catalog. The most-starred ones next to it are Benchmark Methodology, Jupyter Notebook and Solana. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Log Analyzer against them. Open each page to compare what they document and how they install.