[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Stats Generation on RaQ3
- Subject: [cobalt-developers] Stats Generation on RaQ3
- From: "Jose Luis Aguilar" <jlaguilar@xxxxxxx>
- Date: Mon Feb 12 12:09:04 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Cobalt Reps, please respond to this issue:
After installing all the latest patches, I just realized that the stats
generated for the domains on my RaQ3 only show data for the previous day and
not for the whole period included in the "web.log" file under the
/home/sites/siteX/logs/ directory.
Report Generated: 2001/02/12 04:02
Period Covered: 2001/02/11 06:08 - 2001/02/12 03:41
The "web.log" file has entries since January 09, 2001 up until yesterday.
Stats for only one day are not very useful!.
I have looked around in the scripts that generate the stats and I found
what's causing this behavior. In the split_logs script, Cobalt runs the
analog analyzer with the data gotten from the current apache access log
file, which of course only has entries for the last day since it is rotated
everyday at 4 a.m.
This is the code in the split_logs file:
# now we run analog if session_log exists
if ( -e $session_log){
system("$analog < $session_log");
unlink $session_log;
}
Changing the line:
system("$analog < $session_log");
To:
system("$analog < $log_file");
should do the trick. This would feed analog the whole "web.log" file,
instead of the "web.sessionlog" file. "web.sessionlog" only contains access
data for the previous day.
Any comments Sun-Cobalt?
Jose Aguilar