Re: logrotate and regular expressions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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?

Generate your logrotate config dynamically if nothing else,
that's what scripting is for, run a cron that runs a few minutes
before logrotate to update the config to include any of the latest
files and logrotate will pick it up. Or create a separate logrotate
config for each site and drop it in a directory and have logrotate
include all configs in that directory.

nate


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux