Install
openclaw skills install cm-log-analyzerAnalyze application logs to produce actionable error digests with pattern detection, severity classification, trend analysis, and remediation recommendations...
openclaw skills install cm-log-analyzerParse application logs into actionable error digests with pattern grouping, severity classification, trend detection, and remediation recommendations.
# Analyze a single log file
python3 scripts/analyze_logs.py /var/log/app.log
# Analyze all logs in a directory
python3 scripts/analyze_logs.py /var/log/myapp/
# Last 24 hours only, errors and above
python3 scripts/analyze_logs.py /var/log/app.log --since 24h --severity error
# JSON output for programmatic use
python3 scripts/analyze_logs.py /var/log/app.log --output json
# Markdown report with trends
python3 scripts/analyze_logs.py /var/log/app.log --output markdown --trends
# Ignore noisy patterns
python3 scripts/analyze_logs.py /var/log/app.log --ignore "healthcheck" --ignore "GET /favicon"
{"level": ..., "msg": ...} formatMar 28 02:31:00 host service: msg)2026/03/28 02:31:00 [error] ...[2026-03-28 02:31:00] LEVEL: messageForce format with --format <name> if auto-detection fails.
--trends (hourly frequency buckets)| Flag | Default | Description |
|---|---|---|
--format | auto | Force log format |
--since | all | Time filter (1h, 24h, 7d, or ISO date) |
--severity | warn | Minimum severity to report |
--top | 20 | Number of top patterns to show |
--output | text | Output format: text, json, markdown |
--trends | off | Show hourly frequency trends |
--ignore | none | Regex patterns to exclude (repeatable) |
-q | off | Summary only, skip individual entries |
0 — No errors found1 — Errors found (warn/error level)2 — Fatal/critical entries foundUse in CI/CD pipelines to fail builds on log errors.
--since 1h --severity error --trends to see recent errors with frequency--output json to feed into monitoring dashboards--since 24h --output markdown for a daily report--severity debug to see full picture--ignore to filter out known noisereferences/error-patterns.md for detailed remediation steps on specific error typesFor detailed remediation guidance on specific error types (memory, network, database, SSL, etc.), see references/error-patterns.md.