Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

OnlyFiles w/ IIS Query Strings

Reply to Post Add a New Topic
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 1035

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:
5 + 7
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 494
Posts: 2361

Membership:

There are 1900 Members
There have been 244 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: henrique, ScottWigle, mgshirinda, andersondj, gmbasile, o6asan

Administrators: Jean-Luc (1035 Posts)

Moderators: Jean-Luc (1035 Posts)