This change avoids loading the whole logfile document in memory. Change-Id: I39ece6a32467670f5861ff806c5151f94b0d1860