Install
openclaw skills install server-log-analyzerAnalyzes server log files to detect problems, extract performance metrics, and provide troubleshooting insights. Triggers: "analyze logs", "log analysis", "c...
openclaw skills install server-log-analyzerAnalyzes server log files to identify problems, extract performance metrics, and provide actionable insights for troubleshooting.
[YYYY/MM/DD HH:MM:SS] module.path LEVEL line_number: message
Example:
[2026/04/15 12:08:03] sanhai.flow.linear_data_flow INFO 127: flow_id:2044266474671067136 - Worker completed
python scripts/log_analyzer.py /path/to/your/logfile.log
python scripts/log_analyzer.py /path/to/your/logfile.log --json
Automatically detects common issues:
| Severity | Issue Type | Detection Pattern |
|---|---|---|
| High | Database failures | [DB] update/insert failed |
| High | Missing components | has no corrector |
| Medium | Notification failures | email notification failed |
| Medium | Classification errors | paper type error |
| Low | ID recognition failures | invalid student number |
Extracts Python traceback information:
| Section | Content |
|---|---|
| Summary | Log level counts, time range |
| Exceptions | Python exceptions (highest priority) |
| Performance | TPS, processing time |
| Issues | Problems by severity |
| Modules | Module call frequency |
| Metric | Normal | Warning | Critical |
|---|---|---|---|
| TPS | 50-300 | <20 | <10 |
| Batch Time | <2s | >5s | >10s |