From owner-freebsd-questions@FreeBSD.ORG Fri Dec 10 15:55:50 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 D996416A4CE for ; Fri, 10 Dec 2004 15:55:50 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8E7343D3F for ; Fri, 10 Dec 2004 15:55:50 +0000 (GMT) (envelope-from fbsd-questions@trini0.org) Received: from hivemind.trini0.org (trini0.org[65.34.205.195]) by comcast.net (rwcrmhc12) with ESMTP id <2004121015555001400egf0be>; Fri, 10 Dec 2004 15:55:50 +0000 Received: from [192.168.0.16] (gladiator.trini0.org [192.168.0.16]) by hivemind.trini0.org (Postfix) with ESMTP id BF46B60C6; Fri, 10 Dec 2004 10:55:49 -0500 (EST) Message-ID: <41B9C706.4070003@trini0.org> Date: Fri, 10 Dec 2004 10:55:50 -0500 From: Gerard Samuel User-Agent: Mozilla Thunderbird 0.9 (X11/20041114) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Panagiotis Christias 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 15:55:51 -0000 Panagiotis Christias wrote: >On Fri, 10 Dec 2004 09:03:47 -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 >> >>It doesn't seem to work. So Im double checking with the list to >>see if what Im trying to do is possible (but Im going about it the wrong >>way). >> >> > >It should work. I have a similar entry in my newsyslog.conf: > >/var/log/apache/*-access_log 664 1 * @01T00 G >/var/run/httpd.pid >/var/log/apache/*-error_log 664 1 * @01T00 G >/var/run/httpd.pid > >Try running newsyslog manually using the "-v" and "-n" options. > > Here is what I got by running newsyslog manually -> hivemind# newsyslog -vn --snip-- /var/log/httpd-*.log <1>: does not exist, skipped. Even though, the files do exist -> hivemind# ls -al /var/log/httpd-*.log -rw-r--r-- 1 root wheel 7052038 Dec 10 10:43 /var/log/httpd-access.log -rw-r--r-- 1 root wheel 212 Dec 9 20:07 /var/log/httpd-cvs_error.log -rw-r--r-- 1 root wheel 90363 Dec 9 15:25 /var/log/httpd-error.log -rw-r--r-- 1 root wheel 208 Dec 10 01:26 /var/log/httpd-test1_error.log -rw-r--r-- 1 root wheel 2332 Dec 9 15:28 /var/log/httpd-www_error.log Im currently running FreeBSD 5.3-RELEASE-p1, if that means anything. Any other ideas??? Thanks