| User | Post |
|
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 254 |
|
|
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 254 |
|
|
%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 254 |
|
|
Try this one:
ExtraSectionFirstColumnValues1="URL,\/html\/home([a-zA-Z0-9_]*)\.html$"
I moved the * within the (…) !
Jean-Luc
|
|
|
6:54 am October 18, 2007
| Zozoabirs
Guest
| | | |
|
| |
|
|
Thank you very much for your help.
It works.
Have a nice day.
|
|