🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Logfile Analyzer

by @charlie-morrison

Analyze application logs to produce actionable error digests with pattern detection, severity classification, trend analysis, and remediation recommendations...

Versionv1.0.0
πŸ’‘ Examples

# 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"

βš™οΈ 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 |

View on ClawHub
TERMINAL
clawhub install logfile-analyzer

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’