127.0.0.1 - - [14/Jun/2018:17:08:42 +0800] "GET /plus/mytag_js.php HTTP/1.1" 404 215 "http://www.xxx.net/plus/mytag.php" "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)"
127.0.0.1 - - [25/Jun/2018:16:48:05 +0800] "POST /index.php?m=member&c=index&a=register&siteid=1 HTTP/1.1" 200 139 "http://www.xxxx.net/index.php?m=member&c=index&a=register&siteid=1" "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)"
匹配规则 1
{IPORHOST:remote_addr} - - [%{HTTPDATE:access_timestamp}\] "%{WORD:http_verb}
匹配规则 2
^%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:http_verb} %{DATA:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response:int} (?:-|%{NUMBER:bytes:int}) %{QS:referrer} %{QS:agent}$
匹配规则 3
api.yejianfeng.com 10.171.xx.xx 100.97.xx.xx [10/Jun/2015:10:53:24 +0800] "GET /api1.2/qa/getquestionlist/?limit=10&source=ios&token=12343425324&type=1&uid=304116&ver=1.2.379 HTTP/1.0" - 200 2950 "-" "TheMaster/1.2.379 (iPhone; iOS 8.3; Scale/2.00)" 0.656 0.654
匹配规则 4
"%{IPORHOST:http_host} %{IPORHOST:server_ip} %{IPORHOST:client_ip} \[%{HTTPDATE:timestamp}\] \"%{WORD:http_verb} (?:%{PATH:baseurl}\?%{NOTSPACE:params}(?: HTTP/%{NUMBER:http_version})?|%{DATA:raw_http_request})\" (%{NOTSPACE:params})?|- %{NUMBER:http_status_code} (?:%{NUMBER:bytes_read}|-) %{QS:referrer} %{QS:agent} %{NUMBER:time_duration:float} %{NUMBER:time_backend_response:float}"
网友评论