[CentOS] logrotate and regular expressions

Luciano Rocha strange at nsk.no-ip.org
Wed Sep 23 15:39:09 UTC 2009


On Wed, Sep 23, 2009 at 11:33:32AM -0400, Sol Fulop wrote:
> I am trying to use logrotate to rotate our web logs for our various
> vhosted sites to cut down on space and rotate out old logs that are not
> necessary to keep around personally.  What Im curious to find out, is
> how supported extended regular expressions is within the logrotate.conf
> file.  More specifically, will logrotate be smart enough to decipher the
> following:
> 
> /path/to/logs/access_log.www.*.(com|org|net|us)

AFAIK, logrotate doesn't support regular expressions, only wildcards (*
and ?).

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20090923/8a27dc3c/attachment.sig>


More information about the CentOS mailing list