diff options
-rw-r--r-- | python.d/web_log.chart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python.d/web_log.chart.py b/python.d/web_log.chart.py index eb2b87084a..9f049cddb9 100644 --- a/python.d/web_log.chart.py +++ b/python.d/web_log.chart.py @@ -268,9 +268,9 @@ class Service(LogService): default_dict = defaultdict(lambda: 0) for line in raw: - match = self.regex.findall(line) + match = self.regex.search(line) if match: - match_dict = dict(zip_longest('address method url code sent resp_length resp_time'.split(), match[0])) + match_dict = dict(zip_longest('address method url code sent resp_length resp_time'.split(), match.groups())) try: code = ''.join([match_dict['code'][0], 'xx']) to_netdata[code] += 1 |