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
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.
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.
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.
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.
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)
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.