#1762 Custom aggregation on two parameters

open
nobody
None
1
2013-08-25
2013-06-23
congobongo
No

Hello,

I want to make a graph that captures a certain path from the URL (version info) and also a string from the query string (license key info), and then summarize which keys uses how much bandwidth etc on which versions of the website. Currently i can do these two as seperate ExtraSections (ie. one for summarizing on version level, and one for summarizing on key level).

But how can i aggregate on several levels/parameters in the same extrasection in Awstats 7.1,1 (running on freebsd - soon upgrading to 7.1.1,1).

ive tried this config, that did not work:

ExtraSectionName3="apikey use"
ExtraSectionCodeFilter3="200 304"
ExtraSectionCondition3="QUERY_STRING,apikey"
ExtraSectionFirstColumnTitle3="APIKEY"
ExtraSectionFirstColumnValues3="QUERY_STRING,apikey=([^&]+)"
ExtraSectionFirstColumnFormat3="%s"
ExtraSectionSecondColumnTitle3="SMADR Version"
ExtraSectionSecondColumnValues3="URL,\/service\/locations\/(.*)\/.*\/json"
ExtraSectionSecondColumnFormat3="%s"
ExtraSectionStatTypes3=PL
ExtraSectionAddAverageRow3=0
ExtraSectionAddSumRow3=1
MaxNbOfExtra3=20
MinHitExtra3=1

best regards
Thomsa

Discussion

  • congobongo
    congobongo
    2013-08-25

    doesnt anyone else have the same requirement ?