@cryptotaxi247 / netdata-1 / commits / b64dc9e35

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

Funzinator committed Aug 14, 2017 at 20:32 UTC b64dc9e358f10213d0243791b0b743cc596b6d93
1 file changed +1 -1
python.d/web_log.chart.py
+1 -1
@@ -697,7 +697,7 @@ class Web(Mixin):
697 optional_dict = {'resp_length': r'\d+',
698 'resp_time': r'[\d.]+',
699 'resp_time_upstream': r'[\d.-]+',
700 - 'http_version': r'\d\.\d'}
700 + 'http_version': r'\d(\.\d)?'}
701
702 mandatory_values = set(mandatory_dict) - set(match_dict)
703 if mandatory_values: