Adding a Diagnostics link on the left nav under REST API tab. It will display the diagnostics information in JSON format. The added advantage is that the REST API can be invoked outside the ApplicationMaster UI context. The log links will be clickable from the UI as well.
The API url will look like this -
Additionally a new table in the AM UI landing page has been added for a quick preview of the containers and their log links. Note, old/dead containers will be in this table too, which disappear from the RM UI container list.