Fix issues with tailing rotated jsonlog file Upstream-commit: cbd4e4d48ae2edda79be962f6136c6ae9edad7b9 Component: engine