try discarding all unwanted lines from log first

...still no joy, and very similar result: only capturing the last record
from the record set.
now all but last is captured

Ok, slight improvement. We get multiple records now, but the last one is
left out