Convert a log stream into metrics