OnlyFiles w/ IIS Query Strings


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




OnlyFiles w/ IIS Query Strings

Add a New Topic Reply to Post
UserPost

8:10 pm
April 10, 2008


dheeraj1777

Guest

Does anyone know how to make the REGEX for OnlyFiles work on the Query String?


I need to produce details stats for URL w/ specific text in the Query String.


I tried URLWithQuery=1 option and applied REGEX but the REGEX only seems to apply to the stem of URL and not the query string for IIS log files. It seems to work fine w/ the Apache Log files though.


Any solutions to the problem w/o writing custom pre-processing code to generate a temp log file for AWStats?


Help would be appreciated.


Dheeraj

6:38 am
April 11, 2008


Jean-Luc

Admin

posts 231

This looks like a bug in AWStats. I suggest this patch for version 6.7.


In lines 6476 and 6480, replace the four occurences of:

$field[$pos_url]

By:

$field_url_iis


Then replace line 6474:

# Skip for some client host IP addresses, some URLs, other URLs

By:


# Skip for some client host IP addresses, some URLs, other URLs
my $field_url_iis = $field[$pos_url] ;
if ($pos_query >= 0 && $field[$pos_query] && $field[$pos_query] ne '') {
$field_url_iis .= '?' . $field[$pos_query] ;
}

The limited tests I run showed this was working with IIS. It should not interfere with Apache.

Add a New Topic Reply to Post


Reply to Topic: OnlyFiles w/ IIS Query Strings

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 5        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

1 Guest

Maximum Online: 31

Forums:

Groups: 2

Forums: 7

Topics: 109

Posts: 516

Members:

There are 29 members

There are 95 guests


Jean-Luc has made 231 posts

Top Posters:

Steve - 14

angelko - 5

cwei - 4

KevinA - 3

Kinglui - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)