From owner-freebsd-questions@FreeBSD.ORG Tue May 11 11:05:01 2004 Return-Path: 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 D095016A4CE for ; Tue, 11 May 2004 11:05:01 -0700 (PDT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FE1643D41 for ; Tue, 11 May 2004 11:05:01 -0700 (PDT) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.71]) by mta10.adelphia.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with SMTP id <20040511180500.OGAI8065.mta10.adelphia.net@barbish> for ; Tue, 11 May 2004 14:05:00 -0400 From: "JJB" To: "freebsd-questions@FreeBSD. ORG" Date: Tue, 11 May 2004 14:05:00 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Force newsyslog to rotate from custon script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 18:05:01 -0000 Problem description: My ipfilter log is rotated using newsyslog.conf. The file is rotated on file size option. I have custom script that reads the log and builds email containing list of abusive source IP address. This custom script is included in the daily management report process. Problem is that on days that there is a lot of blocked traffic the log may rotate multiple times and my daily management report script only runs against the current active log. Is their some way to keep the log defined in newsyslog.conf without any rotate option and add something to my custom script to tell newsyslog to rotate the log after the script has processed the current active log file?