log-archiver

Archive log files older than a specified number of days.

26|5|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill log-archiver-kunwl123456
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-archiver
Source: https://github.com/kunwl123456/zeroclaw-skills-collection/tree/main/log-archiver
Command: npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill log-archiver-kunwl123456

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fs-extra, glob, minimist, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the management of log files, preventing disk space from being consumed by old, unnecessary data and ensuring logs are organized.

Core Features & Use Cases

  • Automated Archiving: Moves log files older than a specified number of days to an archive directory.
  • Log Cleanup: Helps maintain a clean and organized log directory.
  • Use Case: Automatically archive task logs older than 7 days to keep the primary logs directory tidy and manageable.

Quick Start

Run the log archiver skill to move logs older than 7 days to the logs/archive directory.

Frequently Asked Questions about log-archiver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate log file cleanup and archiving in Node.js?

You can automate log file cleanup by running a Node.js script that moves log files older than a specified number of days to an archive directory. This automated log archiving prevents disk space from being consumed by old data.

What is the best way to rotate application logs older than a specific number of days?

Rotating logs older than a specific number of days is best handled by automated archiving scripts that move stale files to an archive directory. This ensures your primary logs directory remains clean and manageable for maintenance.

Do I need to install fs-extra and glob to run this log archiver script?

Yes, you need Node.js installed along with the fs-extra, glob, and minimist libraries. These dependencies are required for performing file system operations and parsing command line arguments for the log cleanup process.

Can I specify a custom retention period for system administration log rotation?

Yes, you can specify a custom retention period by providing a specified number of days as an argument. The log archiver will move system administration log files older than that threshold to a designated archive directory.

Why does my application maintenance routine need automated log cleanup?

Automated log cleanup is needed in application maintenance to prevent disk space from being consumed by unnecessary old data. Archiving older log files ensures your logs remain organized and your system runs efficiently.