BSD Ports

sysutils/cronolog 1.6.2_7 DragonFly

Web log rotation utility that provides datestamp filenames

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
sysutils
Package size
26.9 KiB, 58.7 KiB installed

Description

"cronolog" is 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.

"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. E.g.:

TransferLog "\|/www/sbin/cronolog /www/logs/%25Y/%25m/%25d/access.log"
ErrorLog    "\|/www/sbin/cronolog /www/logs/%25Y/%25m/%25d/errors.log"

would instruct Apache to pipe its access and error log messages into separate copies of cronolog, which would create new log files each day in a directory hierarchy structured by date, i.e. on 31 December 1996 messages would be written to:

/www/logs/1996/12/31/access.log
/www/logs/1996/12/31/errors.log

After midnight the following files would be used:

/www/logs/1997/01/01/access.log
/www/logs/1997/01/01/errors.log

In the other systems

SystemPortVersion
DragonFlysysutils/cronolog1.6.2_7
FreeBSDsysutils/cronolog1.6.2_7
OpenBSDwww/cronolog1.6.2p0
NetBSDwww/cronolog1.6.2nb11

Install

Binary package:

pkg install cronolog

From DPorts:

cd /usr/dports/sysutils/cronolog && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The cronolog port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing