糖果实验室杂货铺

Candy Lab

如何用logstash解析nginx日志

1 year ago 0

如何用logstash解析nginx日志

1
2
3
4
5
6
7
8
match => ["message", "%{IP:client_ip},,-,,\[%{HTTPDATE:timestamp}\],,\"(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:http_version}))\",,%{NUMBER:stat
us:int},,%{NUMBER:bytes:float},,%{QS:referrer},,%{QS:agent},,(%{QS:upstream_host}),,\"(%{NUMBER:upstream_time:float})\",,\"(%{NUMBER:request_time:float})\",,(%{NUMB
ER:request_size:float})"]


/usr/lib/jvm/jdk1.8.0_91
export PATH=/usr/local/openresty/nginx/sbin:$PATH
export PATH=/usr/lib/jvm/jdk1.8.0_91/bin:$PATH

糖果实验室

Openresty中文编程网
IKBC经典机械键盘
机械键盘领券优惠购买

Write a Comment