ExtraSectionCondition => RegEx not working

  • Version: 6.1


    I have been trying everything right now, but I don't get the RegeEx in the ExtraSectionConditionX working.
    I am trying to filter certain hits that came from a Google AdWords campaign.
    In the beginning I wanted to use a logical "AND" in the ExtraSectionCondition. Checking if the URL contains the AdWords campaign code: "start_offer.html?camp=1" AND checking if the REFERER field contains a google search string "q=...." [REGEX: (.\/hotel\/somewhere\/start_offer.html\?camp=1.)(.google.) ]. By that I wanted to isolate the search terms that led to a hit. So far so good.

    However, as far as I understand this document: http://awstats.sourceforge.net/docs/awstats_extra.html it is only possible to use one of the available fields (e.g. Either URL, REFERER, UA, etc.).
    Having learned this I changed my mind and decided that it would be best to only check in the ExtraSectionCondition if the URL contains the AdWords campaign code: "?camp=1" and then retrieve the required search term from the ExtraSectionFirstColumnValues (by looking for REFERER and "q=...".
    I also learned from the above mentioned document that I needed to use RegEx in the ExtraSectionCondition as well as in the ExtraSectionFirstColumnValues. However, this is where I am stuck. I do get the impression, that regex is not implemented properly for the ExtraSectionCodition field. These are my fields:


    And running it with this logline: - - [05/Oct/2004:23:17:00 +0200] "GET /hotel/somewhere/start_offer.html?camp=1 HTTP/1.0" 304 - "http://www.google.de/search?hl=de&ie=UTF-8&q=TEST&meta=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

    I don't get any results for the ExtraSection. However, if I use this configuration:


    I do get my hit. Strangely enough, I also do get a hit when I have the following logline - - [05/Oct/2004:23:17:00 +0200] "GET /hotel/somewhere/start_offer.html HTTP/1.0" 304 - "http://www.google.de/search?hl=de&ie=UTF-8&q=TEST&meta=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

    ==> missing string: "?camp=1"

    So, if RegEx isn't working at all in the ExtraSectionCondition THEN I shouldn't see this hit, because the condition "URL,/hotel/somewhere/start_offer.html?" doesn't apply to this hit.

    Anybody out there who could help me get my problem sorted out?

    Best regards & thanks in advance!