360 Secure SkillHub
360 安全技能中心

Skylv Log Analyzer

核心功能为解析多种格式日志,提取错误、警告、时间戳等关键信息,生成含统计数据、高频错误、异常时段及优化建议的分析报告。典型场景包括用户请求分析日志、调试时做日志模式分析。输入为日志内容(可通过系统命令获取最新片段),输出为结构化分析结果。

sky-lv
sky-lv
热度 43.11
最近更新 2026-05-11 17:44:40
分类:数据依赖:读写文件 / 内部调用大模型应用场景:数据处理 / 调试排错 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skylv-log-analyzer
Metadata
name
skylv-log-analyzer
slug
skylv-log-analyzer
version
1.0.0
description
Parses and summarizes log files. Extracts errors, warnings, patterns, and insights from server logs and debug output. Triggers: analyze logs, parse log file, error summary, log analysis, debug logs.
author
SKY-lv
license
MIT
tags
["logs","debugging","analysis","monitoring"]
keywords
["logs","analysis","debugging","error-tracking","monitoring"]
triggers
analyze logs, parse log file, error summary, log analysis

Log Analyzer

Overview

Parses and analyzes log files to extract errors, warnings, patterns, and actionable insights.

When to Use

  • User asks to "analyze these logs" or "check the error log"
  • Debugging session needs pattern analysis

How It Works

Step 1: Read log file

Windows: type server.log or Get-Content error.log -Tail 100 macOS/Linux: tail -n 100 app.log

Step 2: Detect log format

[2024-01-15 14:30:45] -> Timestamp bracketed ERROR 2024-01-15 -> Level + timestamp { "level": "error" } -> JSON structured

Step 3: Extract key information

Level: ERROR, WARN, INFO, DEBUG Timestamp: when it happened Source: which component/module Message: what happened

Step 4: Generate analysis report

Output Format

Total lines: 1,247 Time range: 10:00 -> 18:00

Errors: 23 Warnings: 67 Info: 892

Top Errors by frequency:

  1. Connection timeout (x12) - API calls to external service
  2. Auth failure (x6) - Failed login from IP xxx

Anomaly: Unusual spike at 16:00-17:00 (18 errors in 1 hour)

Recommendations:

  1. Check external service connectivity
  2. Review failed logins for security
  3. Add retry logic to DB writes