The FreeBSD Ports Archive

Freebsd | Contact
Welcome to FreeBSD Software


FreeBSD sysutils : cronolog

A web log rotation utility that provides datestamp filenames

 "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/%Y/%m/%d/access.log"
	ErrorLog    "|/www/sbin/cronolog /www/logs/%Y/%m/%d/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 

http://cronolog.org/



cronolog history


v. 1.17
date: 2007/10/29 14:22:05;  author: shaun;  state: Exp;  lines: +2 -0
Depend on autotools, to fix the problem noted in the PR below.

PR:		ports/117116
Submitted by:	"Richard A. Secor" 

v. 1.16 date: 2006/12/11 01:00:20; author: shaun; state: Exp; lines: +7 -5 Fix bug in symlinked log file handling. PR: ports/104919 Submitted by: David Wood Obtained from: http://cronolog.org/patches/cronolog-missing-symlink-patch.txt
v. 1.15 date: 2006/06/19 20:06:57; author: shaun; state: Exp; lines: +1 -1 Switch to my @FreeBSD.org address. Approved by: ahze (mentor)
v. 1.14 date: 2006/05/07 15:00:10; author: nork; state: Exp; lines: +1 -1 Fix build error when cronolog-setugid-patch.txt is not.
v. 1.13 date: 2006/05/04 14:53:33; author: vd; state: Exp; lines: +18 -1 * Add setuid patch [1] * Shorten pkg-descr [2] PR: ports/92830 [1], ports/96289 [2] Submitted by: Shaun Amott
v. 1.12 date: 2006/04/29 15:30:48; author: linimon; state: Exp; lines: +1 -1 Assign to new maintainer. PR: ports/96289 (partial) Approved by: outgoing maintainer
v. 1.11 date: 2005/07/11 19:28:19; author: pav; state: Exp; lines: +1 -1 - Fix fetch PR: ports/83233 Submitted by: Mark Blackman (maintainer)
v. 1.10 date: 2004/03/31 13:57:33; author: pav; state: Exp; lines: +1 -0 - Use INFO macro PR: ports/64872 (based on) Submitted by: Mark Blackman
v. 1.9 date: 2003/02/21 13:28:37; author: knu; state: Exp; lines: +1 -0 De-pkg-comment.
v. 1.8 date: 2002/08/31 16:25:51; author: dwcjr; state: Exp; lines: +1 -1 Change maintainer's email PR: 42248 Submitted by: maintainer
v. 1.7 date: 2002/03/31 04:40:11; author: pat; state: Exp; lines: +2 -2 Update to 1.6.2 PR: 36540 Submitted by: Sean Chittenden Approved by: mail to maintainer bounces
v. 1.6 date: 2002/01/06 06:20:22; author: will; state: Exp; lines: +2 -2 First round of auto* cleanups: - USE_AUTO* -> USE_AUTO*_VER=* where required - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK - Other minor changes to fix things These changes should be no-ops with the current bsd.port.mk, but will assist in preparing for the next generation of USE_AUTO*. Submitted by: bento 4-exp USE_AUTO* cleanups http://people.FreeBSD.org/~will/4-exp/ http://bento.FreeBSD.org/errorlogs/4-exp-latest/
v. 1.5 date: 2001/03/12 13:56:48; author: kevlo; state: Exp; lines: +2 -5 Fix mtree problem PR: 25706 Submitted by: MAINTAINER
v. 1.4 date: 2000/04/22 10:11:57; author: mharo; state: Exp; lines: +2 -2 Corrrect whitespace introduced during PORTNAME conversion and portlint
v. 1.3 date: 2000/04/09 19:07:27; author: cpiazza; state: Exp; lines: +8 -8 Update with the new PORTNAME/PORTVERSION variable
v. 1.2 date: 2000/01/31 23:25:33; author: jedgar; state: Exp; lines: +2 -2 We only need to strip the binary once PR: 16493 Submitted by: Maintainer
v. 1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; branches: 1.1.1; Initial revision
v. 1.1.1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; lines: +0 -0 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. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). PR: 16254 Submitted by: Mark Blackman ============================================================================= v. 1.17 date: 2007/10/29 14:22:05; author: shaun; state: Exp; lines: +2 -0 Depend on autotools, to fix the problem noted in the PR below. PR: ports/117116 Submitted by: "Richard A. Secor"
v. 1.16 date: 2006/12/11 01:00:20; author: shaun; state: Exp; lines: +7 -5 Fix bug in symlinked log file handling. PR: ports/104919 Submitted by: David Wood Obtained from: http://cronolog.org/patches/cronolog-missing-symlink-patch.txt
v. 1.15 date: 2006/06/19 20:06:57; author: shaun; state: Exp; lines: +1 -1 Switch to my @FreeBSD.org address. Approved by: ahze (mentor)
v. 1.14 date: 2006/05/07 15:00:10; author: nork; state: Exp; lines: +1 -1 Fix build error when cronolog-setugid-patch.txt is not.
v. 1.13 date: 2006/05/04 14:53:33; author: vd; state: Exp; lines: +18 -1 * Add setuid patch [1] * Shorten pkg-descr [2] PR: ports/92830 [1], ports/96289 [2] Submitted by: Shaun Amott
v. 1.12 date: 2006/04/29 15:30:48; author: linimon; state: Exp; lines: +1 -1 Assign to new maintainer. PR: ports/96289 (partial) Approved by: outgoing maintainer
v. 1.11 date: 2005/07/11 19:28:19; author: pav; state: Exp; lines: +1 -1 - Fix fetch PR: ports/83233 Submitted by: Mark Blackman (maintainer)
v. 1.10 date: 2004/03/31 13:57:33; author: pav; state: Exp; lines: +1 -0 - Use INFO macro PR: ports/64872 (based on) Submitted by: Mark Blackman
v. 1.9 date: 2003/02/21 13:28:37; author: knu; state: Exp; lines: +1 -0 De-pkg-comment.
v. 1.8 date: 2002/08/31 16:25:51; author: dwcjr; state: Exp; lines: +1 -1 Change maintainer's email PR: 42248 Submitted by: maintainer
v. 1.7 date: 2002/03/31 04:40:11; author: pat; state: Exp; lines: +2 -2 Update to 1.6.2 PR: 36540 Submitted by: Sean Chittenden Approved by: mail to maintainer bounces
v. 1.6 date: 2002/01/06 06:20:22; author: will; state: Exp; lines: +2 -2 First round of auto* cleanups: - USE_AUTO* -> USE_AUTO*_VER=* where required - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK - Other minor changes to fix things These changes should be no-ops with the current bsd.port.mk, but will assist in preparing for the next generation of USE_AUTO*. Submitted by: bento 4-exp USE_AUTO* cleanups http://people.FreeBSD.org/~will/4-exp/ http://bento.FreeBSD.org/errorlogs/4-exp-latest/
v. 1.5 date: 2001/03/12 13:56:48; author: kevlo; state: Exp; lines: +2 -5 Fix mtree problem PR: 25706 Submitted by: MAINTAINER
v. 1.4 date: 2000/04/22 10:11:57; author: mharo; state: Exp; lines: +2 -2 Corrrect whitespace introduced during PORTNAME conversion and portlint
v. 1.3 date: 2000/04/09 19:07:27; author: cpiazza; state: Exp; lines: +8 -8 Update with the new PORTNAME/PORTVERSION variable
v. 1.2 date: 2000/01/31 23:25:33; author: jedgar; state: Exp; lines: +2 -2 We only need to strip the binary once PR: 16493 Submitted by: Maintainer
v. 1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; branches: 1.1.1; Initial revision
v. 1.1.1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; lines: +0 -0 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. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). PR: 16254 Submitted by: Mark Blackman ============================================================================= v. 1.17 date: 2007/10/29 14:22:05; author: shaun; state: Exp; lines: +2 -0 Depend on autotools, to fix the problem noted in the PR below. PR: ports/117116 Submitted by: "Richard A. Secor"
v. 1.16 date: 2006/12/11 01:00:20; author: shaun; state: Exp; lines: +7 -5 Fix bug in symlinked log file handling. PR: ports/104919 Submitted by: David Wood Obtained from: http://cronolog.org/patches/cronolog-missing-symlink-patch.txt
v. 1.15 date: 2006/06/19 20:06:57; author: shaun; state: Exp; lines: +1 -1 Switch to my @FreeBSD.org address. Approved by: ahze (mentor)
v. 1.14 date: 2006/05/07 15:00:10; author: nork; state: Exp; lines: +1 -1 Fix build error when cronolog-setugid-patch.txt is not.
v. 1.13 date: 2006/05/04 14:53:33; author: vd; state: Exp; lines: +18 -1 * Add setuid patch [1] * Shorten pkg-descr [2] PR: ports/92830 [1], ports/96289 [2] Submitted by: Shaun Amott
v. 1.12 date: 2006/04/29 15:30:48; author: linimon; state: Exp; lines: +1 -1 Assign to new maintainer. PR: ports/96289 (partial) Approved by: outgoing maintainer
v. 1.11 date: 2005/07/11 19:28:19; author: pav; state: Exp; lines: +1 -1 - Fix fetch PR: ports/83233 Submitted by: Mark Blackman (maintainer)
v. 1.10 date: 2004/03/31 13:57:33; author: pav; state: Exp; lines: +1 -0 - Use INFO macro PR: ports/64872 (based on) Submitted by: Mark Blackman
v. 1.9 date: 2003/02/21 13:28:37; author: knu; state: Exp; lines: +1 -0 De-pkg-comment.
v. 1.8 date: 2002/08/31 16:25:51; author: dwcjr; state: Exp; lines: +1 -1 Change maintainer's email PR: 42248 Submitted by: maintainer
v. 1.7 date: 2002/03/31 04:40:11; author: pat; state: Exp; lines: +2 -2 Update to 1.6.2 PR: 36540 Submitted by: Sean Chittenden Approved by: mail to maintainer bounces
v. 1.6 date: 2002/01/06 06:20:22; author: will; state: Exp; lines: +2 -2 First round of auto* cleanups: - USE_AUTO* -> USE_AUTO*_VER=* where required - USE_AUTO* / *_DEPENDS=.*auto*:*/devel/auto* -> GNU_CONFIGURE where OK - Other minor changes to fix things These changes should be no-ops with the current bsd.port.mk, but will assist in preparing for the next generation of USE_AUTO*. Submitted by: bento 4-exp USE_AUTO* cleanups http://people.FreeBSD.org/~will/4-exp/ http://bento.FreeBSD.org/errorlogs/4-exp-latest/
v. 1.5 date: 2001/03/12 13:56:48; author: kevlo; state: Exp; lines: +2 -5 Fix mtree problem PR: 25706 Submitted by: MAINTAINER
v. 1.4 date: 2000/04/22 10:11:57; author: mharo; state: Exp; lines: +2 -2 Corrrect whitespace introduced during PORTNAME conversion and portlint
v. 1.3 date: 2000/04/09 19:07:27; author: cpiazza; state: Exp; lines: +8 -8 Update with the new PORTNAME/PORTVERSION variable
v. 1.2 date: 2000/01/31 23:25:33; author: jedgar; state: Exp; lines: +2 -2 We only need to strip the binary once PR: 16493 Submitted by: Maintainer
v. 1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; branches: 1.1.1; Initial revision
v. 1.1.1.1 date: 2000/01/22 03:10:03; author: jedgar; state: Exp; lines: +0 -0 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. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). PR: 16254 Submitted by: Mark Blackman =============================================================================



Main menu

FreeBSD

Program categories

Freebsd accessibility
Freebsd archivers
Freebsd astro
Freebsd audio
Freebsd benchmarks
Freebsd biology
Freebsd cad
Freebsd chinese
Freebsd comms
Freebsd converters
Freebsd databases
Freebsd deskutils
Freebsd devel
Freebsd dns
Freebsd editors
Freebsd emulators
Freebsd finance
Freebsd french
Freebsd ftp
Freebsd games
Freebsd german
Freebsd graphics
Freebsd hebrew
Freebsd hungarian
Freebsd irc
Freebsd japanese
Freebsd java
Freebsd korean
Freebsd lang
Freebsd mail
Freebsd math
Freebsd mbone
Freebsd misc
Freebsd multimedia
Freebsd net
Freebsd net-im
Freebsd net-mgmt
Freebsd net-p2p
Freebsd news
Freebsd palm
Freebsd polish
Freebsd ports-mgmt
Freebsd portuguese
Freebsd print
Freebsd russian
Freebsd science
Freebsd security
Freebsd shells
Freebsd sysutils
Freebsd textproc
Freebsd ukrainian
Freebsd vietnamese
Freebsd www
Freebsd x11
Freebsd x11-clocks
Freebsd x11-drivers
Freebsd x11-fm
Freebsd x11-fonts
Freebsd x11-servers
Freebsd x11-themes
Freebsd x11-toolkits
Freebsd x11-wm