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

Download URL with query parameter *.zip?eclipse

Reply to Post Add a New Topic
UserPost

6:40 am
January 17, 2014


SK

Guest

Hello,

I am using AWStats on Ubuntu 12.0 and writing Python script to make desired changes in the log file.

As I was working with AWStats , I came across a situation where I need to differentiate the download using query parameter. And could not figure out how to do it. Wheather I have to write a script or awstats extra section would help me with this situation.

The URL could be:

http://mysite.com/folder/product.zip

OR

http://mysite.com/folder/product.zip?eclipse

Both URL download product from the same source. I need to differentiate the download based on the URL.

Thanks.

5:14 pm
February 28, 2014


Jean-Luc

Admin

posts 1125

Hello,

 

I would try this:

 

ExtraSectionName1="Downloads with query parameters"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,^\/folder\/.*"
ExtraSectionFirstColumnTitle1="URL"
ExtraSectionFirstColumnValues1="URL,^\/folder\/(.*)"
ExtraSectionFirstColumnFormat1="<a href='/folder/%s' TARGET='_blank'>%.80s</a>"
ExtraSectionStatTypes1=HL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1

 

Note that an extra section picks up all traffic (robots and human).

Reply to Post

Reply to Topic:
Download URL with query parameter *.zip?eclipse

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 + 3
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2712

Membership:

There are 257 Members
There have been 305 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)