[CentOS] logrotate and regular expressions

Wed Sep 23 16:00:32 UTC 2009
James Pearson <james-p at moving-picture.com>

Sol Fulop wrote:
> Is there a way around that??? Like run a command to get all the
> filenames then pipe it to the config directive
> /path/to/logs/access_log.www.*.(com|org|net|us) {} in logrotate.conf?

You might be able to do something like:

/path/to/logs/access_log.www.*.com /path/to/logs/access_log.www.*.org ... {}

James Pearson