Parse log lines and extract a metric