Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2004 10:55:50 -0500
From:      Gerard Samuel <fbsd-questions@trini0.org>
To:        Panagiotis Christias <christias@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Wildcard syntax in newsyslog.conf
Message-ID:  <41B9C706.4070003@trini0.org>
In-Reply-To: <e4b0ecef0412100642749559ee@mail.gmail.com>
References:  <41B9ACC3.7020106@trini0.org> <e4b0ecef0412100642749559ee@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Panagiotis Christias wrote:

>On Fri, 10 Dec 2004 09:03:47 -0500, Gerard Samuel
><fbsd-questions@trini0.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41B9C706.4070003>