web_log_plugin: update regex to match nginx request_time > 10sec
Ilya committed
Mar 6, 2017 at 22:14 UTC
d153ef011b77d6840e9c94645deea3556daa067e
1 file changed
+2
-2
python.d/web_log.chart.py
+2
-2
@@ -315,7 +315,7 @@ class Service(LogService):
315
r' (?P<code>[1-9]\d{2})'
316
r' (?P<bytes_sent>\d+)'
317
r' (?P<resp_length>\d+)'
318
- r' (?P<resp_time>\d\.\d+) ')
318
+ r' (?P<resp_time>\d+\.\d+) ')
319
320
acs_nginx_ext_append = re.compile(r'(?P<address>[\da-f.:]+)'
321
r' -.*?"(?P<method>[A-Z]+)'
@@ -325,7 +325,7 @@ class Service(LogService):
325
r' (?P<bytes_sent>\d+)'
326
r' .*?'
327
r' (?P<resp_length>\d+)'
328
- r' (?P<resp_time>\d\.\d+)')
328
+ r' (?P<resp_time>\d+\.\d+)')
329
330
def func_usec(time):
331
return time