Hi, 

I have an apache http access log with lines like this:


000.000.000.000 - - [10/Jul/2006:00:20:37 +0200] "GET
/xxxx?yyyy=zzzz&locale=en_xx&DB=DB1&parm=bla HTTP/1.1" 302 -
"http://referrer.com/page.html"; "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1)"
000.000.000.000 - - [10/Jul/2006:00:20:37 +0200] "GET
/xxxx?yyyy=zzzz&locale=fr_xx&DB=DB1&parm=bla HTTP/1.1" 302 -
"http://referrer.com/page.html"; "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1)"

000.000.000.000 - - [10/Jul/2006:00:20:37 +0200] "GET
/xxxx?yyyy=zzzz&locale=en_xx&DB=DB2&parm=bla HTTP/1.1" 302 -
"http://referrer.com/page.html"; "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1)"
000.000.000.000 - - [10/Jul/2006:00:20:37 +0200] "GET
/xxxx?yyyy=zzzz&locale=fr_xx&DB=DB2&parm=bla HTTP/1.1" 302 -
"http://referrer.com/page.html"; "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1)"

I would like to match these and put them in an alias like

FILEALIAS REGEXP:\/xxxx\?.*en_.*DB1.*302.* DB1_Redirected_EN
FILEALIAS REGEXP:\/xxxx\?.*fr_.*DB1.*302.* DB2_Redirected_FR
FILEALIAS REGEXP:\/xxxx\?.*en_.*DB2.*302.* DB1_Redirected_EN
FILEALIAS REGEXP:\/xxxx\?.*fr_.*DB2.*302.* DB2_Redirected_FR

Is that possible?

Thanks

Michel

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to