YARN-2582. Fixed Log CLI and Web UI for showing aggregated logs of LRS. Contributed Xuan Gong.

(cherry picked from commit e90718fa5a0e7c18592af61534668acebb9db51b)