Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Report on a specific URL only

2009-08-04
2013-03-04
  • AtlantisNet
    AtlantisNet
    2009-08-04

    Our site uses query parameters in the URL to display specific pages such as:

    http://www.manaonline.org/index.php?cat=15
    http://www.manaonline.org/?cat=15
    http://www.manaonline.org/index.php?cat=111
    http://www.manaonline.org/?cat=111

    I want to run awstats to only report on URLs that contain the ?cat=111 query. I've tried using the following settings with no luck:

    URLQuerySeparators="?;"
    URLWithQuery=1
    OnlyFiles="?cat=111"

    Here is a line from our raw log files (IIS 5.0):

    2009-08-01 12:13:47 65.55.25.136 - 206.135.15.24 GET /index.php cat=111 200 20423 280 500 HTTP/1.1 www.manaonline.org msnbot/1.1+(+http://search.msn.com/msnbot.htm) - -

    My LogFormat is:
    LogFormat = "%time2 %host %logname %other %method %url %query %code %bytesd %other %other %other %other %ua %other %referer"

    Can this be done using AWstats 6.9 (build 1.925)? If so, can someone help me correcting set this up?

     
    • Jean-Luc
      Jean-Luc
      2009-08-09

      You can try these workarounds:

      • use of a filter in the "Pages-URL - Full list "
      • use of an extra section with the QUERY_STRING parameter

      Jean-Luc
      http://www.internetofficer.com/awstats/

       
    • Jean-Luc
      Jean-Luc
      2009-08-06

      Hi,

      You have to correct OnlyFiles.

      Try this :

      OnlyFiles="REGEX[\?cat=111]"

      Jean-Luc
      http://www.internetofficer.com/awstats/

       
    • AtlantisNet
      AtlantisNet
      2009-08-08

      That didn't work unfortunately.

      Could the problem be due to the way IIS records it's log files. Notice there is a single space between the filename (index.php) and the query (cat=111). It also doesn't contain the ?. If the OnlyFiles attribute only looks at the %url variable and not the %query variable then this could be the issue.

      2009-08-01 12:13:47 65.55.25.136 - 206.135.15.24 GET /index.php cat=111 200 20423 280 500 HTTP/1.1 http://www.manaonline.org msnbot/1.1+(+http://search.msn.com/msnbot.htm) - -

       
    • Jean-Luc
      Jean-Luc
      2009-08-09

      Hi,

      I made a few more tests here. I believe that you are right. It seems that AWStats only looks at the %url parameter. This is not what it is supposed to do as the documentation states that the checks "apply on URL with all its query parameters". It works correctly with Apache log files, but Apache does not split the URL and the query as IIS does.

      Jean-Luc
      http://www.internetofficer.com/awstats/

       
  • Jilly9
    Jilly9
    2009-09-16

    Do you have an example of "extra section with the QUERY_STRING
    parameter"?

    Yes, OnlyFiles= does not work with my IIS logs and I have to report on the
    hosts who accessed a particular file.

    Thanks.

     
  • Jilly9
    Jilly9
    2009-09-21

    does anyone know of a stats program that will do this for IIS logs?

    thanks