Here is how I would process the log file.