To Parse the log