Awstats common statistic results disparity

Vitaliy
2011-07-06
2012-10-11
  • Vitaliy
    Vitaliy
    2011-07-06

    Hi, everybody! I have a problem with Awstats.
    I'm trying to configure common statistics for 2 sites with Awstats.
    I created 2 config files for each site:

    awstats.domain1.com.conf
    awstats.domain2.com.conf
    

    I also created config file for common statistics:

    awstats.common.com.conf
    

    ,

    in which I determined the next LogFile parameter:

    LogFile="perl /.../logresolvemerge.pl /var/vhosts/..../logs/*.access.log |"
    

    (in logs directory I have 2 *.log files for both sites).

    The I updated statistics for both sites, and common statistics, using:

    perl awstats.pl -update -config=domain1.com
    perl awstats.pl -update -config=domain2.com
    perl awstats.pl -update -config=common.com
    

    The problem is next: when I look at my statistics in browser, I see that the sum of statistics of domain1 and domain2 isn't the same as common statistics. For example, the count of unique visitors in June 2011 for http://www.domain.com/awstats/awstats.pl?config=domain1.com is 2931, for http://www.domain.com/awstats/awstats.pl?config=domain2.com it is 15403. But the total sum at http://www.domain.com/awstats/awstats.pl?config=common.com is 17770, although it must be 18334 (as the sum of 15403 and 2931). The other parameters, such Number of visits, Pages, Bandwidth do not match too.

    So, could you help me? How can this problem be solved? What I might have done
    wrong?

     
  • Vitaliy
    Vitaliy
    2011-07-06

    By the way, *.log files for both sites are very large (about 8 Gb and 10 Gb).
    ..And when updating statistics, I got next messages:

    [root@pox cgi-bin]# perl awstats.pl -update -config=common.com
    Create/Update database for config "/etc/awstats/awstats.common.com.conf" by AWStats version 6.8 (build 1.910)
    From data in log file "perl /opt/awstats-7.0/tools/logresolvemerge.pl /var/vhosts/domain.com/logs/*.access.log |"...
    Phase 1 : First bypass old records, searching new record...
    Searching new records from beginning of log file...
    Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique url reach flush limit of 5000)
    Flush history file on disk (unique url reach flush limit of 5000)
    Flush history file on disk (unique url reach flush limit of 5000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique url reach flush limit of 5000)
    Flush history file on disk (unique url reach flush limit of 5000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    Flush history file on disk (unique hosts reach flush limit of 20000)
    ...
    
     
  • Jean-Luc
    Jean-Luc
    2011-07-07

    Hi,

    You wrote: " when I look at my statistics in browser, I see that the sum of
    statistics of domain1 and domain2 isn't the same as common statistics".

    Say that site A gets 3 unique visitors (Mike, John and Carla) and that site B
    gets 2 unique visitors (Nancy and Carla). The number of unique visitors for
    both sites together is 4 and not 5 (Mike, John, Carla and Nancy).

    The messages "Flush history file on disk" are informational, just to let you
    know that AWStats is temporarily saving information on disk.

    Jean-Luc, AWStats Support

     
  • Vitaliy
    Vitaliy
    2011-07-08

    Thank's for reply!, Jean-Luc!!

    But I still have the same question. It's clear now about "The number of unique
    visitors", but other parameters, I think, must match (number of visits, pages,
    hits, bandwidth etc.)

    It's my statistics: first for "site A", second for "site B", and third -
    common. By the way, "site A" and "site B" are simply English and Spanish
    versions of the same site.

    Month Unique visitors Number of visits Pages Hits Bandwidth
    Site A:
    Jun 2011 15403 21029 163228 642540 7.02 GB
    Site B:
    Jun 2011 2931 3877 10719 51314 1.14 GB
    Common:
    Jun 2011 17770 21649 92333 372584 4.65 GB

    Can you explain me, please, maybe I have done smth wrong in awstats
    configuration, or maybe I still don't understand smth about common statistics?
    =)

     
  • Jean-Luc
    Jean-Luc
    2011-07-08

    For pages, hits and bandwidth, you should have: common = A + B.
    For visits, you should have : common < A + B (as a visitor that goes from A to
    B, is only counted once in common while he is counted in both A and B).and A <
    common and B < common (obvious).

    Your setup is not as you expect it to be. Your common gets even less traffic
    than site A! I cannot tell from here where the problem is, but you should
    definitely double-check your config files.

    Jean-Luc, AWStats Support