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

problem to do an extra

Reply to Post Add a New Topic
UserPost

5:49 am
September 12, 2008


hush-hush

Guest

hello !

i'm trying to do a array with the number a dowload, of a xpi files.

i do this:

ExtraSectionName2="Downloads (xpi) – Top 20"
ExtraSectionCodeFilter2="200 304"
ExtraSectionCondition2="URL,(.*\\.xpi)"
ExtraSectionFirstColumnTitle2="Download"
ExtraSectionFirstColumnValues2="URL,.*"
ExtraSectionFirstColumnFormat2="%s"
ExtraSectionAddSumRow2=1
MaxNbOfExtra2=20

but it doesn't works, i have a array with all file of my web site (the MaxNbOfExtra doesn't work).

so i try the example of my .conf:

# Example to report the 20 products the most ordered by "order.cgi" script^M
ExtraSectionName1="Product orders"^M
ExtraSectionCodeFilter1="200 304"^M
ExtraSectionCondition1="URL,\\/cgi\\-bin\\/order\\.cgi||URL,\\/cgi\\-bin\\/order2\\.cgi"^M
ExtraSectionFirstColumnTitle1="Product ID"^M
ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"^M
ExtraSectionFirstColumnFormat1="%s"^M
ExtraSectionStatTypes1=PL^M
ExtraSectionAddAverageRow1=0^M
ExtraSectionAddSumRow1=1^M
MaxNbOfExtra1=20^M
MinHitExtra1=1^M

it doesn' works too, i have a big array.

I lauch awstats like that:

perl awstats.pl -config=nameOfMySite -configdir=/PathToMyConf/ -output=allextra1 -staticlinks > awstats.nameOfMySite.html

someone know why nothing works with extra ?

thanks

6:11 am
September 12, 2008


Jean-Luc

Admin

posts 1125

Hi,

You need parenthesis to select a part of the text within ExtraSectionFirstColumnValues:

ExtraSectionFirstColumnValues2=”URL,(.*)”

I am not sure that you can omit ExtraSectionStatTypes and MinHitExtra. Try with:

ExtraSectionStatTypes2=PHBLMinHitExtra2=1

This should solve the problem with the first extra section.

I did not look at the second one which is more complicated. When the problem of the first extra section is solved, try solving the second one with less complicated regular expressions first.

7:04 am
September 12, 2008


hush-hush

Guest

no i reinstall awstats and now i have just an empty array 🙁

i dont understand, it's look like simple, 'ExtraSectionCondition2="URL,.*\\.xpi"' is a regexp to apply to all URL of logFile, and if it match the url selected.

and ExtraSectionFirstColumnValues2="URL,(.*)" select a part of the selected url and display it in a array.

that it's ? i'm wrong ?

8:02 am
September 12, 2008


Jean-Luc

Admin

posts 1125

When you change an extra section, the changes do not apply to what is already in AWStats database. The new extra section will only apply to the lines of the log file that will be read when doing the next updates of the stats.

I agree with you that ExtraSectionCondition is a condition that pre-selects rows in the log file and ExtraSectionFirstColumnValues selects a part of the choosen field among these rows pre-selected by ExtraSectionCondition.

I hope this clarifies the matter.

8:33 am
September 12, 2008


hush-hush

Guest

but I launch 'awstats.pl -config=MySite -update' at each time i change somthing in my conf, to see if it works.

i try many turoriel, and example, but nothing works, it's anything to do to activate extra ?

and if regexp match nothing in log wath append ?

8:45 am
September 12, 2008


Jean-Luc

Admin

posts 1125

If there is no match for the extra section, the title of the extra section and the titles of the coilumns appear in the report, but there are no rows with data.

Please copy your extra section here (exactly as it is in your AWStats config file) and copy also a line from the log file that matches the conditions.

I will try to reproduce the problem.

10:21 am
September 12, 2008


hush-hush

Guest

ExtraSectionName1=”dowloads”
ExtraSectionCodeFilter1=”"
ExtraSectionCondition1=”URL,.*\\.xpi”
ExtraSectionFirstColumnTitle1=”version”
ExtraSectionFirstColumnValues1=”URL,(.*)”
ExtraSectionFirstColumnFormat1=”%s”
ExtraSectionStatTypes1=PL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1

and an example of a ligne log tha match my regexp (they are manu like that):

XXX.XX.XXX.XX – - [29/Aug/2008:03:22:38 +0200] “GET /downloads/XXXX.xpi HTTP/1.0″ 200 993519 “http://www.supershareware.com/download/XXXX.html” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1″

for me URL is “/downloads/XXXX.xpi” no ? maybe i'm wrong.

11:41 am
September 12, 2008


Jean-Luc

Admin

posts 1125

Your extra section works perfectly here.

As the data in this example are from August 2008, they appear in the August 2008 report. 😉

7:09 am
September 13, 2008


hush-hush

Guest

It's juste the bigin of my log file. It's start at the end of august and finish 12 september (for the moment).

so many line like this are in september. and in the url section of basic array, of september, they are many url to xpi file.

11:42 am
September 14, 2008


Jean-Luc

Admin

posts 1125

Two more questions:

1. do you see the empty extra section at the bottom of the AWStats report ?

2. what is your version of AWStats ?

3:44 am
September 15, 2008


hush-hush

Guest

ok  i fix the probleme, i don't understand why but i need to add data to my log file, for that my changes in my conf are aply.

I think '-update' option, do not reload logfile perfectly …

but it works fine now, I add data, to my logFile test, it's works fine also if I move/delete awstats092008.XXXX.txt.

Maybe i not use fine awstats, but it's looks like a bug to not use correctly data to new extra without new data.

But thank you very much jean-luc for your help.(just for information yes I see empty array at the bottom of AWStats report, and my version is 6.8 (build 1.910)

thanks again :D

3:59 am
September 15, 2008


Jean-Luc

Admin

posts 1125

It is not a bug.

When updating, AWStats tries to make sure it does not process twice the same records in the log file. To do that, AWStats retrieves the last record it has processed from the last database file awstats092008.****.txt.

It is a good idea to move or delete the database files each time you perform configuration tests like you do now.

Good to see that the extra section works !

Reply to Post

Reply to Topic:
problem to do an extra

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:
8 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 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)