<div dir="ltr"><div><div><div><div><div>Hi guys,<br><br></div>I have a problem with one application where I want to track and graph response times. At the moment I had to change the source to log special line in the log which is recognised by collectd match. <br><br></div>I have a log which generates values in ms. <br><br>2016/10/20 14:51:05 HEX a test result found (486 ms) on HOST<br><br></div>Generally I'm trying to catch 486 in that case.<br><br></div>I have a tail plugin configured for the new log entry which now looks like:<br></div>2016/10/20 14:51:05 COLLECTD TIME=486 and it works<br><br><div><Plugin "tail"><br>  <File "/var/log/app.log"><br>    Instance "app_log"       <br>    <Match> <br>      Regex "COLLECTD TIME=([0-9.]+)"<br>      DSType "GaugeAverage"<br>      Type "response_time"<br>      Instance "result"<br>    </Match><br>  </File><br></Plugin><br><br></div><div>I was trying to find a regex to match the proper log entry but I couldn't work it out. I tried <br></div><div><br>Regex "found \(([0-9]+ ms)\)" but that didn't work. I tried<br>Regex "found \(([0-9]+.)" but that also didn't work. <br><br></div><div>Any ideas if there is a way to extrac that number from between the bracket so collectd can write it ?<br><br></div><div>Thanks.<br></div></div>