weblog: custom regex update - allow to use hostnames as addresses
Ilya committed
Sep 10, 2017 at 17:08 UTC
11fcfdea41caa9e3faea7005bf1fb1c7d0c63833
1 file changed
+1
-1
python.d/web_log.chart.py
+1
-1
@@ -667,7 +667,7 @@ class Web(Mixin):
667
if match_dict is None:
668
return find_regex_return(msg='Custom log: search OK but contains no named subgroups'
669
' (you need to use ?P<subgroup_name>)')
670
- mandatory_dict = {'address': r'[\da-f.:]+|localhost',
670
+ mandatory_dict = {'address': r'[\w.:-]+',
671
'code': r'[1-9]\d{2}',
672
'bytes_sent': r'\d+|-'}
673
optional_dict = {'resp_length': r'\d+',