lognap

A small command-line tool that compresses and prunes old log files. One binary, one config file, no daemon.

Why

logrotate is great, but on tiny machines I wanted something I could read in one sitting. lognap does three things: compress files older than N days, delete files older than M days, and keep the directory under a size limit.

Install

curl -LO /dl/lognap-0.6.2-linux-amd64.tar.gz
tar xzf lognap-0.6.2-linux-amd64.tar.gz
sudo install lognap /usr/local/bin/

Downloads are available on request while the release page is being moved.