wwwstat "hourly count" bug ??
Alvin Oga (alvin@planet.fef.com)
Sun, 5 Jan 1997 04:45:42 -0800 (PST)
>
> Path: newsfeed.pnl.gov!planet.fef.com!alvin
> From: alvin@linux-consulting.com (Alvin Oga)
> Newsgroups: comp.infosystems.www.servers.misc,comp.infosystems.www.misc,comp.lang.perl.misc
> Subject: Re: wwwstat data extraction ( bug ?? )
> Followup-To: comp.infosystems.www.servers.misc,comp.infosystems.www.misc,comp.lang.perl.misc
> Date: 5 Jan 1997 12:42:26 GMT
> Organization: fef.com
> Lines: 56
> Message-ID: <5ao7ji$23v@newsfeed.pnl.gov>
> References: <5ajkdh$7cj@newsfeed.pnl.gov>
> NNTP-Posting-Host: 198.147.196.14
> X-Newsreader: TIN [version 1.2 PL2]
> Xref: newsfeed.pnl.gov comp.infosystems.www.servers.misc:6087 comp.infosystems.www.misc:54513 comp.lang.perl.misc:53721
>
> Hi all
>
> I believe I have fixed the problem... When a new day starts, I think that
> the %HourRequests array needs to be reset at midnight each night or at least
> on the first occurance of a httpd log entry for the next day
> ( guess it had nothing to do with hyphenated domain names )
>
> Code excerpts from the process_log() function :
>
> if ($timestamp =~
> m#^([ 1-3]?\d)/([A-Za-z]+)/(\d{4}):(\d\d):\d\d:\d\d ([+ -]\d{1,4})#)
> {
> $date = "$2 $1 $3";
> $hour = "$4";
> $TimeZone = "$5";
> #
> # 04-Jan-97 amo Without this, I will remember yesterdays evening run even if we are chec
> #
> if ( $my_day ne $1 ) {
> $my_day=$1;
> my patch---> %HourRequests = (); # RESET the hours processed for yesterday
> }
> }
>
> have fun
> alvin
>
> : I just loaded up wwwstat-2.0 from http://www.ics.uci.edu/WebSoft/wwwstat
> : on my linux-2.0.27 box w/ apache-1.1.1
>
> : Has anyone out there noticed that wwwstat extracts "hourly data"
> : for the afternoon even though it is still morning ??
>
> : The reason hourly data for this afternoon ( even though it is morning )
> : is because of the "hyphens in www.domain-names.com from yesterdays logs
> : eg:
> : www.xxx-yyy.com - - [02/Jan/1997:15:07:33
> : www.some-domain.com - - [02/Jan/1997:16:13:40
> : www-f6.proxy.aol.com - - [02/Jan/1997:23:07:21
>
> : these log entries from yesterday will cause data for today to show up
> : at 3:07PM, 4:13PM and 11:07PM even tho it is still in the morning of
> : Jan 3...
>
> : has anyone patched wwwstat-2.0 yet ??
>
> : thanx
> : alvin
>
> --
> -------------------------------------------------------------------------
> Alvin Oga, Consultant alvin@planet.fef.com alvin@Linux-Consulting.com
> RING, Inc, http://planet.fef.com www.Linux-Consulting.com
> P.O. Box 70958 408-245-8400
> Sunnyvale, CA 94086 408-523-9097 FAX
> -------------------------------------------------------------------------
>
> --
> -------------------------------------------------------------------------
> Alvin Oga, Consultant alvin@planet.fef.com alvin@Linux-Consulting.com
> RING, Inc, http://planet.fef.com www.Linux-Consulting.com
> P.O. Box 70958 408-245-8400
> Sunnyvale, CA 94086 408-523-9097 FAX
> -------------------------------------------------------------------------
>