logrotate.conf and wildcards
Matthew Saltzman
mjs at ces.clemson.edu
Tue Aug 29 16:09:00 UTC 2006
On Mon, 28 Aug 2006 Greg_Wilson at aotx.uscourts.gov wrote:
> Using wild cards is fine.
But be careful! Trailing wildcards will result in rotating
already-rotated files and an exponetially growing number of files in the
log directory. So rotating /var/log/*/* is a Very Bad Idea (tm).
>
>
> Greg Wilson
>
>
>
>
>
> "Shane Presley" <shane.presley at gmail.com>
> Sent by: redhat-list-bounces at redhat.com
> 08/28/2006 01:36 PM
> Please respond to
> General Red Hat Linux discussion list <redhat-list at redhat.com>
>
>
> To
> redhat-list at redhat.com
> cc
>
> Subject
> logrotate.conf and wildcards
>
>
>
>
>
>
> Hello,
>
> I use syslog-ng on a centralized syslog server (RHEL4). All my hosts
> get directories created under /var/log/hosts/servername. So for
> example
>
> /var/log/hosts/server1
> messages
> mail.log
> debug
>
> /var/log/hosts/server2
> messages
> debug
>
> Of course as servers get added, new directories are dynamically
> created. My question is, can I use wildcards in my logrotate.conf
> file, to specify directories and files?
>
> "/var/log/*/*" to rotate all files or at least "/var/log/*/messages"
>
> Thanks
> Shane
>
>
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs
More information about the redhat-list
mailing list