From owner-freebsd-questions@FreeBSD.ORG Sun Aug 4 03:03:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4186B830 for ; Sun, 4 Aug 2013 03:03:16 +0000 (UTC) (envelope-from mikel.king@gmail.com) Received: from mail-qe0-x230.google.com (mail-qe0-x230.google.com [IPv6:2607:f8b0:400d:c02::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 00F2828A2 for ; Sun, 4 Aug 2013 03:03:15 +0000 (UTC) Received: by mail-qe0-f48.google.com with SMTP id 9so1092368qea.21 for ; Sat, 03 Aug 2013 20:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=+ZMO2XGhK//YhJ7uPOgym5WTtOhEuxf3nnXtTRhv5cA=; b=v1o8JYGgHXEAnpsE30koOo37sfVHBkWMCMcEUK2UK1ewpadOrTZwRmfFPV3ZjEi+Um OZadlwA9xJwMUXaYY69inTR1Un1nbbxE44cufKqL/tKYqhW03LQ3o8iaxAo9Wwhg8TWW 6cpJtuptXB1WK/K+WHCL4p4Lr6FEwwFEE/NimkzxJLBaWzz1mBVG/xNHD3xjXp10zWrN CHthFdAPirhnTlTm1iPJ3wV8pIaScoGH7YkjYZCK9jDrPD9exCgrssYEuCGioWt6DQED +i8KeeEvB1uzHXyflkiuXBBY64rLgAeAyV9TeRs5nbiodaDlturwzIyauHy2x7doOUys +CxQ== X-Received: by 10.229.128.148 with SMTP id k20mr3165516qcs.30.1375585394570; Sat, 03 Aug 2013 20:03:14 -0700 (PDT) Received: from [172.16.1.223] (mail.olivent.com. [75.99.82.91]) by mx.google.com with ESMTPSA id j11sm432648qaa.7.2013.08.03.20.03.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 Aug 2013 20:03:13 -0700 (PDT) Sender: Mikel King Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Archiving a log file From: mikel king In-Reply-To: <51FD8E19.90403@fjl.co.uk> Date: Sat, 3 Aug 2013 23:04:53 -0400 Message-Id: <37485629-94BD-48EF-B7A7-9ED4C5B9A6E5@olivent.com> References: <51FD8E19.90403@fjl.co.uk> To: Frank Leonhardt X-Mailer: Apple Mail (2.1508) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 03:03:16 -0000 On Aug 3, 2013, at 7:11 PM, Frank Leonhardt = wrote: > The answer isn't (AFAIK) newsy slog >=20 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: NAME=20 rotatelogs - Piped logging program to rotate Apache logs=20 SYNOPSIS rotatelogs [ -l ] [ -f ] logfile rotationtime|filesizeM [ offset = ]=20 SUMMARY=20 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 = like: 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 = tomorrow.=20 Regards, Mikel King BSD News Network http://bsdnews.net skype: mikel.king http://twitter.com/mikelking