Rotate Logs
Log rotation and hygiene — checks log files across projects and system locations, archives old logs, flags fast-growing files, and reports disk usage.
Log rotation and hygiene — checks log files across projects and system locations, archives old logs, flags fast-growing files, and reports disk usage.
Real data. Real impact.
Emerging
Developers
Per week
Excellent
Skills give you superpowers. Install in 30 seconds.
📜 by @davehappyminion
Audit log files across project directories and system locations. Identify large or stale logs, offer to compress them, and report disk usage.
Search these locations for
*.log, *.log.*, and logs/ directories:
~/.openclaw/logs/~/Library/Logs/ (macOS user logs)/usr/local/var/log/ (Homebrew service logs)~/Projects, ~/src, ~/.openclaw/workspace)Do NOT scan:
/var/log/ (requires root), node_modules, .venv, target, or build directories.
For each log file, record its path, size, and last modified date. Then classify:
*.log.gz, *.log.1, etc. Informational.For Stale and Oversized logs, offer to compress them with gzip (keeping the original).
ASK the user before archiving. Present the list and estimated space savings.
Do NOT delete originals unless the user explicitly asks.
Summarize:
logrotate is installed, check for existing rotation configs to avoid conflicts.MIT
curl -o ~/.openclaw/workflows/rotate-logs.md https://raw.githubusercontent.com/nikilster/clawflows/main/workflows/available/community/rotate-logs/WORKFLOW.md1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.