cronolog

Logfile rotator for web servers

Install

All systems
curl cmd.cat/cronolog.sh
Debian Debian
apt-get install cronolog
Ubuntu
apt-get install cronolog
image/svg+xml Kali Linux
apt-get install cronolog
Fedora
dnf install cronolog
Windows (WSL2)
sudo apt-get update sudo apt-get install cronolog
OS X
brew install cronolog
Raspbian
apt-get install cronolog

cronolog

Logfile rotator for web servers

A simple program that reads log messages from its input and writes them to a set of output files, the names of which are constructed using template and the current date and time. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). It intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs: TransferLog "|/usr/bin/cronolog /var/log/apache/%Y/access.%Y.%m.%d.log" A cronosplit script is also included, to convert existing traditionally-rotated logs into this rotation format.