Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

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 818

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.

Reply to Post

Reply to Topic:
OnlyFiles w/ IIS Query Strings

Guest Name (Required):

Guest Email (Required):

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

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 3
   


About the InternetOfficer.com Forum

Most Users Ever Online: 65

Currently Online:
11 Guests

Forum Stats:

Groups: 2
Forums: 8
Topics: 376
Posts: 1854

Membership:

There are 194 Members
There have been 197 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 48
albert_newton – 30
cosminpana – 20
DTNMike – 16
x-plicit2009 – 14
deepakgupta – 14

Recent New Members: jefft, stewiedv, kre8web, xlancealotx, Robert25

Administrators: Jean-Luc (818 Posts)

Moderators: Jean-Luc (818 Posts)