diff options
author | Funzinator <github@funzi.de> | 2017-08-14 20:32:39 +0200 |
---|---|---|
committer | Funzinator <github@funzi.de> | 2017-08-14 20:32:39 +0200 |
commit | b64dc9e358f10213d0243791b0b743cc596b6d93 (patch) | |
tree | 001d2812c5482b1a56d3c5db4a126ccfd81a0129 /python.d | |
parent | f0e29046889438bfb084f560c9cf32577935d640 (diff) |
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
Diffstat (limited to 'python.d')
-rw-r--r-- | python.d/web_log.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |