Hi,
I have log lines like this.
172.17.189.69 - - [24/Dec/2004:08:40:45 +0900] "POST /cgi-bin/gx.cgi/AppMain?aid=L_Login HTTP/1.1" 200 -
172.17.189.155 - - [25/Oct/2004:09:41:10 +0900] "GET /cgi-bin/gx.cgi/AppMain?aid=CancelOrder&sid=6d250010217a4aaf HTTP/1.1" 200 -
172.17.188.248 - - [21/Oct/2004:09:50:14 +0900] "POST /cgi-bin/gx.cgi/AppAppMain?az=2&aid=L_Login&as=1 HTTP/1.1" 200 -
172.17.188.251 - - [22/Oct/2004:19:09:46 +0900] "GET /cgi-bin/gx.cgi/AppMain?cpy=46&aid=Controller&reqType=Deposit HTTP/1.1" 200 -
172.17.189.155 - - [25/Oct/2004:09:41:10 +0900] "GET /cgi-bin/gx.cgi/AppMain?aid=CancelOrder&sid=6d250010217a4aaf HTTP/1.1" 200 -
172.17.188.248 - - [21/Oct/2004:09:50:14 +0900] "POST /cgi-bin/gx.cgi/AppAppMain?az=2&aid=L_Login&as=1 HTTP/1.1" 200 -
172.17.188.251 - - [22/Oct/2004:19:09:46 +0900] "GET /cgi-bin/gx.cgi/AppMain?cpy=46&aid=Controller&reqType=Deposit HTTP/1.1" 200 -
In the above links, aid is one of the arguments.
We have a requirement that Request Report should list the # of requests for each aid. Like
# of Requests : Last Access (Y-m-D): Request
--------------: -------------------: -------
2: 2004-Oct-22 19:09: /cgi-bin/gx.cgi/appmain?aid=L_Login
1: 2004-Oct-22 19:09: /cgi-bin/gx.cgi/appmain?aid=CancelOrder
1: 2004-Oct-22 19:09: /cgi-bin/gx.cgi/appmain?aid=Controller
The point here is aid argument may come any where in the arguments. I have tried out the following aliases:
REQALIAS /cgi-bin/gx.cgi/appmain?aid=*&* /cgi-bin/gx.cgi/appmain?aid=$1
FILEALIAS /cgi-bin/gx.cgi/appmain?aid=*&* /cgi-bin/gx.cgi/appmain?aid=$1
FILEALIAS /cgi-bin/gx.cgi/appmain?aid=*&* /cgi-bin/gx.cgi/appmain?aid=$1
#When aid is some where in between the parameters
REQALIAS /cgi-bin/gx.cgi/appmain?*&aid=*&* /cgi-bin/gx.cgi/appmain?aid=$2
FILEALIAS /cgi-bin/gx.cgi/appmain?*&aid=*&* /cgi-bin/gx.cgi/appmain?aid=$2
REQALIAS /cgi-bin/gx.cgi/appmain?*&aid=*&* /cgi-bin/gx.cgi/appmain?aid=$2
FILEALIAS /cgi-bin/gx.cgi/appmain?*&aid=*&* /cgi-bin/gx.cgi/appmain?aid=$2
But this aliases are not giving the wanted results. I am confused how to alias the file and request? Can somebody please help me in this?
Regards
Murali
+------------------------------------------------------------------------ | TO UNSUBSCRIBE from this list: | http://lists.meer.net/mailman/listinfo/analog-help | | Usenet version: news://news.gmane.org/gmane.comp.web.analog.general | List archives: http://www.analog.cx/docs/mailing.html#listarchives +------------------------------------------------------------------------

