Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2013 23:04:53 -0400
From:      mikel king <>
To:        Frank Leonhardt <>
Subject:   Re: Archiving a log file
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Aug 3, 2013, at 7:11 PM, Frank Leonhardt <> =

> The answer isn't (AFAIK) newsy slog

I did some more digging on the whole log piping thing and apache =
includes a nifty little application called rotatelogs which lives in =
/usr/local/sbin/rotatelogs on my system that I built form the ports. =
=46rom the man page:

	 rotatelogs - Piped logging program to rotate Apache logs=20
	rotatelogs [ -l ] [ -f ] logfile rotationtime|filesizeM [ offset =
	rotatelogs is a simple program for use in conjunction with =
Apache's piped logfile feature. It supports rotation based on a time =
interval or maximum size of the log.

It looks pretty simple to use just create your log format directive =

	LogFormat "%t \"%r\" %>s \"%{Referer}i\" %b" SpecialFormat

	CustomLog "| /usr/local/sbin/rotatelogs =
/var/log/httpd-access.log 86400" SpecialFormat

I hope that helps. I know I shall be experimenting with this one =

Mikel King
BSD News Network
skype: mikel.king

Want to link to this message? Use this URL: <>