From owner-freebsd-questions@FreeBSD.ORG Fri Dec 10 17:07:41 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 D18D316A4CE for ; Fri, 10 Dec 2004 17:07:41 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6FEF43D31 for ; Fri, 10 Dec 2004 17:07:41 +0000 (GMT) (envelope-from fbsd-questions@trini0.org) Received: from hivemind.trini0.org (trini0.org[65.34.205.195]) by comcast.net (rwcrmhc13) with ESMTP id <2004121017073701500s220me>; Fri, 10 Dec 2004 17:07:41 +0000 Received: from [192.168.0.16] (gladiator.trini0.org [192.168.0.16]) by hivemind.trini0.org (Postfix) with ESMTP id 9B33A60F4; Fri, 10 Dec 2004 12:07:36 -0500 (EST) Message-ID: <41B9D7D9.1080705@trini0.org> Date: Fri, 10 Dec 2004 12:07:37 -0500 From: Gerard Samuel User-Agent: Mozilla Thunderbird 0.9 (X11/20041114) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Schmehl References: <41B9ACC3.7020106@trini0.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions Subject: Re: Wildcard syntax in newsyslog.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 17:07:41 -0000 Paul Schmehl wrote: > --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. Thanks. The "G" flag made it work. That should have clicked with me, with christias@gmail.com suggestion.