#863 [Patch] host_proxyquot

open
nobody
Other (220)
5
2012-10-11
2011-09-27
Rickard Lindroth
No

In our log files %host_proxy is within quotes. I have added %host_proxyquot to awstats.pl to solve the problem as %host_proxy would not strip quotes properly and this would break DNS look ups and other things.

Discussion

  • Diff to awstats.pl version 0.7

     
    Attachments
  • I see that I messed up the version number in the patch, this is for version 7.0, nothing else.

     

  • Anonymous
    2012-04-09

    This is a great patch for IIS .7.5 advanced logging. Hoping it can get added to the main stream.

     

  • Anonymous
    2012-04-09

    I had to modify the patch to work correctly.

    9126a9127,9133

                      elsif ( $f =~ /%host_proxyquot$/ )
                      {    # if host_proxy tag used, host tag must not be used
                              $pos_host = $i;
                              $i++;
                              push @fieldlib, 'host';
                              $PerlParsingFormat .= "\\\"(.+?)(?:, .*)*\\\"";
                      }
    
     
    Last edit: Anonymous 12 hours ago