Change Request: AWStats on log1

Toshio Kuratomi a.badger at gmail.com
Tue Nov 11 21:53:47 UTC 2008


Mike McGrath wrote:
> 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.
> 
+1.  Active problems should be taken care of.

-Toshio

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-infrastructure-list/attachments/20081111/8398a863/attachment.sig>


More information about the Fedora-infrastructure-list mailing list