π¦ ClawHub
Logfile Analyzer
by @charlie-morrison
Analyze application logs to produce actionable error digests with pattern detection, severity classification, trend analysis, and remediation recommendations...
π‘ Examples
# Analyze a single log file
python3 scripts/analyze_logs.py /var/log/app.logAnalyze 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 errorJSON output for programmatic use
python3 scripts/analyze_logs.py /var/log/app.log --output jsonMarkdown report with trends
python3 scripts/analyze_logs.py /var/log/app.log --output markdown --trendsIgnore noisy patterns
python3 scripts/analyze_logs.py /var/log/app.log --ignore "healthcheck" --ignore "GET /favicon"
βοΈ Configuration
| 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 |
TERMINAL
clawhub install logfile-analyzer