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

Extra section for html file groups

Reply to Post Add a New Topic
UserPost

11:44 am
October 15, 2007


Zozoabirs

Guest

Hi,

I have a page structure like this:

/html/career_*.html

/html/contact_*.html

where * means that the file name continues, and I have a lot of file names starting with career. I would like to make a statistic that displays how many times was visited a career group, a contact group etc. Can you help me somehow. I guess I should write an extra section. But after writing it how does the extra section take effect?

Thank you for your help. 

11:57 am
October 15, 2007


Jean-Luc

Admin

posts 1125

Hi,

I would try this extra section:

ExtraSectionName1="File groups"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\\.html$"
ExtraSectionFirstColumnTitle1="Group name"
ExtraSectionFirstColumnValues1="URL,\\/([^_]+)_[^_]+\\.html$"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PBL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1

A new set of data related to the extra section will appear in the AWStats data base at the next update. Lines of the log files that were already processed will not be taken into account.

Jean-Luc

12:10 am
October 18, 2007


Zozoabirs

Guest

Hi,

 Thank you very much for your help.

I made a chart, but I don't know what is the meaning of 'u', 'n', 'e', 'o'. These appears in the chart generated by the extra section. Is it in relation with ExtraSectionFirstColumnFormat1="%s".

Are there other switches like %s? What is exactly the meaning of %s?

Thanks 

 

Here is is my extra section:

ExtraSectionName1="File groups"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1=""
ExtraSectionFirstColumnTitle1="Group na
me"
ExtraSectionFirstColumnValues1="URL,\\/h
tml\\/home([a-zA-Z0-9_])*\\.html$"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=P
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1

 

12:12 am
October 18, 2007


Jean-Luc

Admin

posts 1125

%s is a format string for a text string. These format strings are also used in C, PHP, Perl and other languages. If you are not familiar with these formats, just leave it unchanged.

The 'u', 'n', 'e' and 'o' that you get in the "Group name" column of your chart represent the matches in the regular expression in ExtraSectionFirstColumnValues1.

According to your regular expression, a URL like /html/homesomething.html will appear as something in the first column and a URL like /html/homen.html will appear as n in the first column.

Jean-Luc

12:14 am
October 18, 2007


Zozoabirs

Guest

Hi,

Thanks. But I'm a little bit confused, because if I modify my regular expression in this way: ExtraSectionFirstColumnValues1="URL,\\/html\\/h([a-zA-Z0-9_])*\\.html$" 

The result is the same. And as I understood, in this case in the first column should appear omesomething. But I get also 'u', 'n', 'e', 'o'.

12:15 am
October 18, 2007


Jean-Luc

Admin

posts 1125

Try this one:

ExtraSectionFirstColumnValues1="URL,\\/html\\/home([a-zA-Z0-9_]*)\\.html$"

I moved the * within the (…) ! Wink

Jean-Luc

6:54 am
October 18, 2007


Zozoabirs

Guest

Thank you very much for your help.

 It works.

Have a nice day. 

Reply to Post

Reply to Topic:
Extra section for html file groups

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


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

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