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

Re: [cobalt-users] RaQ3 logs not working



On Wed, 3 May 2000, Debbie Doerrlamm wrote:

> Successful requests: 0 
> Corrupt logfile lines: 88,585 

needs to be told what kind of web server so it can read log files....
reading the main server log file is different than reading the site log
files, they are in a different format...(main file has vsite name in it)

> 
> EEEKS..
> 
> not reading one damn line of the file..
> 
> so now I think back to the KB at cobalt to see what the codes are supposed
> to be there.. all those $%$^%# things :) that says how to read the logs..
> either that or there is another log that should be read!
> 
> what is the contents of the genWebUsage  cron??? I don;t have it at all

/etc/cron.weekly/genWebUsage.siteXX is a small perl script....
it exists only if GUI sets create stats...

it defines the log file name for siteXX btw....you seem to be missing
pieces ;0 (hey, Will wrote this ,where's he hiding?;)

etc/crontab has a line:

02 2 * * 0 root run-parts /etc/cron.weekly

/etc/cron.weekly/genWebUsage.site11
--------
#!/usr/bin/perl

# Web log generation
# Vitual Machine compatible
# Will DeHaan <will@xxxxxxxxxxxxx>
# Copyright 1998-1999 Cobalt Networks

my $log="/home/sites/home/logs/access";
my $analogReport="/home/tmp/analog-home.dat";

# analog generate report
system( "/usr/local/sbin/analog $log >$analogReport
2>>/var/cobalt/sauce.log" );

# generate web output
system( "/usr/admserv/cgi-bin/.cobalt/webUsage/parseReport.pl -l $log -a
$analog
Report /usr/admserv/html/.cobalt/siteManage/home" );

# clean up
unlink $analogReport;