Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Stats between two days

Reply to Post Add a New Topic
UserPost

9:23 am
February 16, 2008


Rajan Singh

Guest

hi,

I want my AWstats report between 2 given days,
If any one have any solution regarding this please let me know.

bye

9:29 am
February 16, 2008


Jean-Luc

Admin

posts 1043

Hi,

If you want separate stats for each day between two given days, follow the procedure explained under AWStats, stats by day.

If you want cumulated stats for the period between the two days, first copy all log files for the period in a separate directory. Then create a new AWStats config file and update the stats starting with the oldest log file (first given day) and ending with the newest (last given day). This will give the stats you want, if the two days are in the same month.

If the two days are from separate months, you will need to create a year report.

Jean-Luc

3:09 am
April 4, 2008


Hendra Effendi

Guest

Hi i have some questions. I tried to create a report which is reporting the traffic for the last 7 days.

I dont know how to check my awstats version but the awstats.pl is marked $Revision: 1.887

I got problem when the 7 days overlap within 2 months.

So for example. I want to generate the weekly report for 2 April. I will then retrieve the reports from 27 March until 7 april. Using logresolve.pl, I combine all of the logs into 1 single log file. Then I will run

'awstats_year.pl -DatabaseBreak=year config=localhost -update' on the 7 day combined log file ( in the awstats_year.pl i also set the databasebreak to year ). But the problem is everytime I set it to year, It will give me all 0 values in the report page).

I read in the documentation that databasebreak year is supported, but how come it is not working. Day and month value is working just fine.

any help is greatly appreciated

cheers

Hendra Effendi

3:43 am
April 4, 2008


Jean-Luc

Admin

posts 1043

Hi,

Let me start with the easy question: "Revision: 1.887" is version 6.6 (look at the bottom of your AWStats report).

Why did you change the name of the program in "awstats_year.pl" ? This is probably not needed. Was an AWStats database file for the year created ? What is its name ? Also how do you call the report: can you copy here what you type in the address bar of your browser ?

Sorry for answering with so many questions.

4:11 am
April 4, 2008


Hendra Effendi

Guest

Hi

thats was a very quick reply.

Probably i dont explain quite clearly. I will explain in more detail

Actually we customize the awstats.pl a quite bit Thats why we have several names. But i have also tried on the original awstats.pl and the result is similar, all zero and there is a 'never build/updated' on the top.

I also have checked and indeed it is version 6.6

So after i run the

'awstats_year.pl -DatabaseBreak=year config=localhost -update', a database file is actually created with the name 'awstats_year2008.localhost.txt'

Then i try to build the report using the command line :

awstats_year.pl config=localhost -month=%Nmonth% -year=%Year% -output -staticlinks > %REPORTS_PATH%\\PAGE_VERTICAL_MONTHLY_%Year%%Nmonth%.html

Basically the report is created with alll zero and 'never build/update' label on the top. I tried omiting the month or year and both but still all zero

So i just start wondering whether the year probably not supported. Then i came across this article http://www.antezeta.com/awstats.html

on section 4.2.10.2 it is said

'yearly reports: do not yet seem to be supported. We tried

  • databasebreak=year&year=2005
    but got the message “Never updated (See 'Build/Update' on awstats_setup.html page)”. This is too bad, as the current yearly reporting is not able to recognize returning visitors across monthly boundaries. A yearly statistics file would change this to a yearly boundary problem.'

So i was thinking if this is actually the case or it is just me who have the wrong setting because the section above us mentioning running from cgi script and i am running it from command line ( windows )

thanks alot

cheers

Hendra Effendi

7:18 am
April 4, 2008


Jean-Luc

Admin

posts 1043

I made some tests here with the same results as you get.

Did you try to generate the two monthly reports for the week and then select the “month=all” option (that's the “year” option in the menu in the CGI reports) ? This “month=all” option works and I guess that it should give the result you are looking for.

12:42 am
April 9, 2008


Hendra Effendi

Guest

Hi

The 'month=all' is just working great. Thanks alot!!

But in this case it means that i cannot calculate the fraffic from within the last 1 week when the year changes is it ?

Hendra

2:21 am
April 9, 2008


Jean-Luc

Admin

posts 1043

Hendra Effendi said:

But in this case it means that i cannot calculate the fraffic from within the last 1 week when the year changes is it ?


That's correct. And I don't know any workaround.

1:55 pm
May 19, 2011


John

Guest

Hello, I've been using awstats for some years now and have a suggestion for viewing "Daily"

stats within the browser report. I've

added code to the awstats.pl file. Between lines 173 and 174 Ive added:

 

################################################################
#Added code for "day" or "Month" reporting…

if ( $ENV{QUERY_STRING} ne '') {
 my $file = $ENV{QUERY_STRING};
 my ($one, $two, $three, $four, $five, $six, $seven) = split (/&/, $file);
 my ($month1, $month2) = split (/=/, $one);
 my ($day1, $day) = split (/=/, $two);
 my ($year1, $year2) = split (/=/, $three);

 #$DatabaseBreak='day';
 if ($day ne 'all')
 {
 $DatabaseBreak='day';
 }
}

$myawstatsver  = 'awstats70';

 ################################################################

 

and between lines ~9888 and 9889 I've added:

 

##############################################################################################################
   #Modification added By John Ridgway: Added "Day" pulldown to html page that only

lists days for existing data
   #Also adds "- Full Month – " option to see regular monthly output

    print "<select class="aws_formfield" name="day">n";

    my $Diritem = "";

    my $file = $ENV{QUERY_STRING};
    my ($one, $two, $three, $four, $five, $six, $seven) = split (/&/, $file);
    my ($month1, $month2) = split (/=/, $one);
    my ($day1, $day) = split (/=/, $two);
    my ($year1, $year2) = split (/=/, $three);
    my ($reportname1, $reportname2) = split(/=/, $five);
    my $FullMonth = "";

    if ($AllowFullYearView >= 2) {
     print "<option value="all">- Full Month -</option>n";
    }

    if ($day eq 'all') {
     my $FullMonth = $day;
    }

    foreach (1..9) {
    if (! DateIsValid($_,$month2,$year2)) { next; }

     my $daynum = "0".$_;
     my $checkfile = "E:".$myawstatsver."".$reportname2."awstats".$month2.$year2.$daynum.".".$reportname2.".txt";
     #my $dayix=sprintf("%02s",$_);
     if (-e $checkfile) {print "<option".("$daynum" eq "$day"?" selected="true"":"")." value="$daynum">$daynum</option>n"}; #if -e $checkfile;
    }

    foreach (10..31) {
    if (! DateIsValid($_,$month2,$year2)) { next; }

     my $daynum = $_;
     my $checkfile = "E:".$myawstatsver."".$reportname2."awstats".$month2.$year2.$daynum.".".$reportname2.".txt";
     #my $dayix=sprintf("%02s",$_);
     if (-e $checkfile) {print "<option".("$daynum" eq "$day"?" selected="true"":"")." value="$daynum">$daynum</option>n"}; #if -e $checkfile;
    }

    if ($FullMonth eq 'all') {print "<option value="$day">$day</option>n"};

   #
   #
   ##############################################################################################################

 

Don't know if this is helpful to anyone or if it's alrwady been done, but it works for me.

 

Thanks for a great, low-cost, logfile statistical analyzer!

 

John RidgwayCool

Reply to Post

Reply to Topic:
Stats between two days

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 10
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
12 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 498
Posts: 2380

Membership:

There are 2068 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1043 Posts)

Moderators: Jean-Luc (1043 Posts)