From owner-freebsd-questions@FreeBSD.ORG Fri Dec 10 16:52:29 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 4553F16A4CE for ; Fri, 10 Dec 2004 16:52:29 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09FF143D2D for ; Fri, 10 Dec 2004 16:52:29 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id 81090388CDF; Fri, 10 Dec 2004 10:52:28 -0600 (CST) Date: Fri, 10 Dec 2004 10:52:28 -0600 From: Paul Schmehl To: Gerard Samuel , freebsd-questions Message-ID: In-Reply-To: <41B9ACC3.7020106@trini0.org> References: <41B9ACC3.7020106@trini0.org> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Wildcard syntax in newsyslog.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 16:52:29 -0000 --On Friday, December 10, 2004 09:03:47 AM -0500 Gerard Samuel wrote: > Is it possible to use wildcards in newsyslog.conf? > For example, my current apache setup, I have a few virtual hosts > logging into their own file. > And instead of specifying each file in newsyslog.conf, Im trying -> > /var/log/httpd-*.log root:wheel 640 1 * @T00 B > /var/run/httpd.run > man newsyslog(8) G indicates that the specified logfile_name is a shell pattern, and that newsyslog should archive all filenames matching that pattern, using the other options specified on this line. See glob(3) for details on syntax and matching rules. The short answer is yes, *if* you use the "G" flag. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu