Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 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 1125

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:
9 + 4
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
14 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)