Wildcard syntax in newsyslog.conf
Paul Schmehl
pauls at utdallas.edu
Fri Dec 10 08:52:29 PST 2004
--On Friday, December 10, 2004 09:03:47 AM -0500 Gerard Samuel
<fbsd-questions at 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
>
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 at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
More information about the freebsd-questions
mailing list