Patrick Finnegan ([EMAIL PROTECTED]):
> I was attempting to get extract internal search arguments from the > logs but nothing was appearing in the internal search query or > internal search word reports. > The log format looks like: > 111.111.111.11 - "sesessionid=X4C2QQ1IOTDYDK0Y1UMURXQ" [10/Jan/2002:16:39:32 +0800] >"GET /utilities/search.jsp?searchString=patrick HTTP/1.1" 200 951 > "http://www.patrick.com.au/utilities/search.jsp?searchString=cober" "Mozilla/4.0 >(compatible; MSIE 5.5; Windows NT 5.0)" > I want the word "patrick" to appear in the int search word report. > The initial settings were: > INTSEARCHQUERY ON > INTSEARCHWORD ON > INTSEARCHQUERYFLOOR 1r > INTSEARCHWORDFLOOR 1r > INTSEARCHENGINE /utilities/search.jsp searchString > FILEALIAS /utilities/search.jsp* search > FILEINCLUDE search > REQINCLUDE search > However if I set FILEINCLUDE /utilities/search.jsp* and comment out > REQINCLUDE the search argument reports appear. I expected FILEALIAS > to pick up GET /utilities/search.jsp?searchString=patrick and then > FILEINCLUDE and REQINCLUDE to track this file through the alias > "search". Do FILEINCLUDE and REQINCLUDE translate the alias? > I re-read the documentation and changed the settings to: > INTSEARCHENGINE /utilities/search.jsp searchString > REQALIAS /utilities/search.jsp* search > I now get the search requests in the report but I also get the other > requests which I do not want. > I changed the settings to: > INTSEARCHENGINE /utilities/search.jsp searchString > REQALIAS /utilities/search.jsp* search > REQINCLUDE search > Now I get nothing in the request report because it seems that > REQINCLUDE does not translate the alias properly. However if I use: > INTSEARCHENGINE /utilities/search.jsp searchString > REQALIAS /utilities/search.jsp* search > REQINCLUDE /utilities/search.jsp* > I get just the search requests in the REQ report which is exactly > what I need. The moral of the story seems to be that the *INCLUDE > directives do not translate the aliases. What I would really like > to do is set the file alias once in the config file and then refer > to that alias when I set any other directives. Is this possible. FILEINCLUDE works on aliased values. REQINCLUDE works on unaliased values. >From http://www.analog.cx/docs/include.html at the top: "After aliasing each item, analog decides whether that item is wanted or not.... Whether an item is wanted or not is determined by INCLUDE and EXCLUDE commands." >From http://www.analog.cx/docs/include.html section on output aliases: "The inclusion or exclusion applies to the unaliased name, if you are doing any output aliases." If you want to set the file alias, then use FILEALIAS. If you want to only have the alias in the Request Report (and no other reports), then use REQALIAS. > I have also noticed that if I set one FILEINCLUDE or REQINCLUDE all > other the other files are excluded by default from the all the > reports. Is this a correct assumption? No, only FILEINCLUDE does that. REQINCLUDE is an output alias and applies only to the Request Report. -- Jeremy Wadsack Wadsack-Allen Digital Group +------------------------------------------------------------------------ | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to | http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at | http://www.mail-archive.com/[email protected]/ | http://lists.isite.net/listgate/analog-help/archives/ | http://www.tallylist.com/archives/index.cfm/mlist.7 +------------------------------------------------------------------------
