add newrelic logs and reformat match statements to new version