@cryptotaxi247 / netdata-1 / commits / 0c39c626f

web log pattern fix (#6180)

* remove double quotation mark from pattern * update conf

Ilya Mashchenko committed May 31, 2019 at 14:18 UTC 0c39c626ff1cba2d3ebde70c175fee12bade45f8
2 files changed +2 -2
collectors/python.d.plugin/web_log/web_log.chart.py
+1 -1
@@ -659,7 +659,7 @@ class Web:
659 r' (?P<bytes_sent>\d+)'
660 r' (?P<resp_length>\d+)'
661 r' (?P<resp_time>\d+\.\d+)'
662 - r' "?(?P<resp_time_upstream>[\d.-]+)')
662 + r' (?P<resp_time_upstream>[\d.-]+)')
663
664 nginx_ext_append = re.compile(r'(?P<address>[\da-f.:]+)'
665 r' -.*?"(?P<request>[^"]*)"'
collectors/python.d.plugin/web_log/web_log.conf
+1 -1
@@ -97,7 +97,7 @@
97 # nginx:
98 # log_format netdata '$remote_addr - $remote_user [$time_local] '
99 # '"$request" $status $body_bytes_sent '
100 -# '$request_length $request_time "$upstream_response_time" '
100 +# '$request_length $request_time $upstream_response_time '
101 # '"$http_referer" "$http_user_agent"';
102 # access_log /var/log/nginx/access.log netdata;
103 #