SkipHosts setting not working

jeffshead
2012-07-06
2013-04-24
  • jeffshead
    jeffshead
    2012-07-06

    I've tried both of the following, but 127.0.0.1 and 192.168.0.1 still show up
    in the statistics even after deleting everything in the data file:

    SkipHosts="127.0.0.1 192.168.0.1"
    
    SkipHosts="127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
    
     
  • jeffshead
    jeffshead
    2012-07-06

    "...everything in the data file:"

    I meant to say, "...everything in the data directory:"

     
  • jeffshead
    jeffshead
    2012-07-08

    When I use the following lines in the config file for testing...

    SkipHosts=""
    OnlyHosts="198.186.192.44"
    

    ... I get the following alert:
    No qualified records found in log (0 corrupted, 0 comments, 0 Blank, 2663
    dropped)

    198.186.192.44 is in the log so it should show statistics for that host but it
    does not.

    Can anyone tell me what's going on? How can I troubleshoot this?

     
  • jeffshead
    jeffshead
    2012-08-27

    This issue is caused by changes in Perl 5.14.0 and AWStats not being updated
    for it.

    Here's the fix if you are using Perl 5.14.0 and AWStats 7.0 build 1.971:

    Open 'awstats.pl' and go to around line 1356 and change from:

    my @arrayunreg = map {
            if (/\(\?[-\w]*:(.*)\)/) { $1 }
        } @$array;
    

    To:

        my @arrayunreg = map { UnCompileRegex($_) } @$array;
    

    Go to around line 7811 and change from:

    shift =~ /\(\?[-\w]*:(.*)\)/;
    

    To:

    shift =~ /\(\?[-^\w]*:(.*)\)/;
    
     
  • zardeven
    zardeven
    2012-09-04

    hi nice information i read and do its working...
    Toronto airport limo service

     
  • Dominic Surrao
    Dominic Surrao
    2012-12-03

    This was really helpful. Thank you!

     
  • Michael
    Michael
    2013-01-21

    I was looking for a solution for a while.
    This is solving my problem. Thank you.

    Familienkirche | Live Stream