Projects : sysutils/cronolog-devel

cronolog

Web log rotation utility that provides date-stamp filenames.
cronolog is a simple filter program that reads log file entries from standard input and writes each entry to the output file specified by a filename template and the current date and time. When the expanded filename changes, the current file is closed and a new one opened. cronolog is intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs.
cronolog is not just limited to rotating web server log files. In fact a community radio station in Montreal, Quebec, (CKUT 90.3 FM) uses it as part of a realtime archive/logging system of the broadcasts using open-source software.
more…

Installation

Using the FreeBSD ports tree method:
cd /usr/ports/sysutils/cronolog-devel make install clean
Using the FreeBSD pkg(8) method:
pkg install sysutils/cronolog-devel

Versions

cronolog-devel is currently at version 1.7.0

What's new in version 1.7.0:

From: Matthew Grosso < mgrosso at looksmart dot net> To: cronolog-users@icarus.demon.co.uk Subject: CRONOLOG: jumbo patch, includes launching external program to handle logs: I've put together a jumbo patch with some features that are on the todo list and most of the outstanding patches on the site — specifically; the todo list items completed (which motivated the work for my companies use) are: ∗ ability to launch a helper program on every log file after it is closed if multiple cronologs writing to the same file, only one helper is launched. ∗ signal handling to ensure that every log file has a chance to be handled by that helper and that cronolog doesnt ever hang apache restarts. ∗ alarm() used so log files rotate on time period boundary even if there is no traffic. I also implemented (with tweaks) many of the outstanding patches, some of which are also on the todo list: ∗ uid/gid patch from Isaac Wilcox <iwilcox at eatstatic dot net> minus the configure changes which broke the build for me. ∗ the large file patch from matt lanier <mlanier at danger dot com> with tweaks from me to work with my own changes above. ∗ incorporated a slightly different implementation of the SIGUSR1 patch from Prakash Kailasa <PKailasa at seisint dot com> ∗ the s/stat/lstat/ fix from Victor Martinez <victor at kablinkteam dot com> the changes have only been tested on my Linux 2.4 box, and should be considered beta until more users have tried it. That said, we'll be starting to qa this at looksmart soon, but again, only on linux. I'm including a sample script that can be used as a helper. It will first compress, then scp a log to multiple destinations, then remove it. Still todo: I need to put my new options into the man page, not just the usage, and see if the configure.in needs modification.