From owner-freebsd-questions Fri Aug 9 4: 6: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F22DD37B409 for ; Fri, 9 Aug 2002 04:06:02 -0700 (PDT) Received: from fep2.mta.online.no (challenger.osl.ttyl.com [148.122.208.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99E3443EF4 for ; Fri, 9 Aug 2002 04:06:00 -0700 (PDT) (envelope-from eivind@aminor.no) Received: from [10.122.7.135] ([148.122.3.244]) by fep2.mta.online.no (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020809110553.JHZW17931.fep2.mta.online.no@[10.122.7.135]> for ; Fri, 9 Aug 2002 13:05:53 +0200 Date: Fri, 09 Aug 2002 13:05:52 +0200 From: Eivind Olsen To: freebsd-questions@freebsd.org Subject: Suggestions for log-parsing + rotating? Message-ID: <878219552.1028898352@[10.122.7.135]> X-Mailer: Mulberry/3.0.0a3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello. I'm wondering about how I'll be doing rotation and parsing (Webalizer etc.) of some logfiles on my FreeBSD 4.6-STABLE box. Currently, log-rotation is done by newsyslog(8). Is there any easy way I can do log-parsing right after the logfiles have been rotated? Should I comment out the newsyslog-call from /etc/crontab and make my own wrapper-script? Or are there any "hooks" somewhere that will allow me to start some command/script after the logfiles have been rotated? Or should I just make a cronjob that triggers 5 minutes after newsyslog and assume that newsyslog has done its job? I have tried looking through the documentation, but couldn't find any _good_ way of doing this. I could of course just hack something together, but I'm wondering which way people suggest I do it. -- Eivind Olsen eivind@aminor.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message