Update log2lines tool. Patch by Jan Roeloffzen, with some changes. Bug #4342.