I want to strip out the beginning and ending parts of the log entry

How did you do it, two separate lines like my example or a single line like I mentioned in my closing paragraph?