Date: Fri, 10 Dec 2004 12:07:37 -0500 From: Gerard Samuel <fbsd-questions@trini0.org> To: Paul Schmehl <pauls@utdallas.edu> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Wildcard syntax in newsyslog.conf Message-ID: <41B9D7D9.1080705@trini0.org> In-Reply-To: <BB2DCA58A0210EBD71640A53@utd49554.utdallas.edu> References: <41B9ACC3.7020106@trini0.org> <BB2DCA58A0210EBD71640A53@utd49554.utdallas.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul Schmehl wrote: > --On Friday, December 10, 2004 09:03:47 AM -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 >> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41B9D7D9.1080705>