skylv-log-analyzer

TotalClaw 作者 SKY-lv v1.0.0

解析并总结日志文件。从服务器日志和调试输出中提取错误、警告、模式和见解。触发器:分析日志、解析日志文件、错误摘要、日志分析、调试日志。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:kn7c4d4r1tezx1t4dxm5mh62rn84f02r~skylv-system-log-analyzer
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Akn7c4d4r1tezx1t4dxm5mh62rn84f02r~skylv-system-log-analyzer/file -o skylv-system-log-analyzer.md
## 概述(中文)

解析并总结日志文件。从服务器日志和调试输出中提取错误、警告、模式和见解。触发器:分析日志、解析日志文件、错误摘要、日志分析、调试日志。

## 原文

# 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