Transforms common log format to JSON