From b64dc9e358f10213d0243791b0b743cc596b6d93 Mon Sep 17 00:00:00 2001 From: Funzinator Date: Mon, 14 Aug 2017 20:32:39 +0200 Subject: allow HTTP/2 for custom_log_format in web_log some web servers log HTTP/2 instead of HTTP/2.0. When using a custom log format, requests with HTTP/2 can't be matched using the default dictionary. This commit makes the .0 optional for custom logs --- python.d/web_log.chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python.d') diff --git a/python.d/web_log.chart.py b/python.d/web_log.chart.py index 1f47eb3bd4..efa6b2b126 100644 --- a/python.d/web_log.chart.py +++ b/python.d/web_log.chart.py @@ -697,7 +697,7 @@ class Web(Mixin): optional_dict = {'resp_length': r'\d+', 'resp_time': r'[\d.]+', 'resp_time_upstream': r'[\d.-]+', - 'http_version': r'\d\.\d'} + 'http_version': r'\d(\.\d)?'} mandatory_values = set(mandatory_dict) - set(match_dict) if mandatory_values: -- cgit v1.2.3