On Tue, 11 Nov 2008, Ricky Zhou wrote: > AWStats has been going crazy on log1, so I'd like to make the cronjob > run less often, and on far fewer log files: > > diff --git a/modules/awstats/manifests/site.pp b/modules/awstats/manifests/site.pp > index 4df7974..6cb2944 100644 > --- a/modules/awstats/manifests/site.pp > +++ b/modules/awstats/manifests/site.pp > @@ -1,5 +1,5 @@ > define awstats::site($log_dir="proxy*", $record_redirects=false, $record_query_string=false) { > - file { "/etc/cron.hourly/awstats.$name": > + file { "/etc/cron.daily/awstats.$name": > mode => 0755, > content => template('awstats/awstats.cron.erb'), > } > diff --git a/modules/awstats/templates/awstats.conf.erb b/modules/awstats/templates/awstats.conf.erb > index 66d2a66..931cbeb 100644 > --- a/modules/awstats/templates/awstats.conf.erb > +++ b/modules/awstats/templates/awstats.conf.erb > @@ -1,4 +1,4 @@ > -LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/hosts/<%= log_dir %>/*/*/*/http/<%= name %>-access.log |" > +LogFile="/usr/share/awstats/tools/logresolvemerge.pl /var/log/hosts/<%= log_dir %>/%YYYY-24/%MM-24/%DD-24/http/<%= name %>-access.log |" > LogType=W > LogFormat=1 > LogSeparator=" " > > Can I get two +1s for this? > +1 from me, this is activly causing problems. -Mike _______________________________________________ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list