split by logs, remove newline characters