This document explains how to collect the log bundle from a specific TAS vm or component such as cloud controller, UAA, Credhub, among others from the Ops Manager UI. Depending on the deployment you can have more than one vm for a specific job, for instance, 2-3 cloud controllers, or multiple vms such as Diego cells. This option will bundle all the vms in one .zip file which can consume some time to complete.
Product Version: 3.x
Step 1) Navigate to the Operations Manager (Ops Manager) UI on the TAS tile and click on the 'Status' tab, it will display the different vms and their IPs:
Step 2) Elect the job or vm you want the logs for and click on the 'Download' icon on the right side and wait for the .zip file to be ready.
Step 3) Navigate to the 'Logs' tab and download the .zip file for further analysis:
As the download starts and completes it can be found in your browser's download location.
To download logs manually from bosh cli, the following commands can be used:
bosh -d cf-XYZ logs cloud_controller --> this will download a log bundle in tgz archive format, for all of the cloud_controllers vms in the deployment. If a single vm logs are needed, specify the exact vm guid such as cloud_controller/abc
bosh logs command provide a help menu with a flags which can be utilised, for example --agent (include bosh agent logs), or --all-logs which will include agent logs and linux system logs in the archive.
For other deployments use steps in this KB https://knowledge.broadcom.com/external/article/293664/how-to-collect-logs-from-boshdeployed-in.html
For TKGI deployment the steps are described in this doc https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-kubernetes-grid-integrated-edition/1-24/tkgi/download-logs.html
To collect support bundle use steps in this KB https://knowledge.broadcom.com/external/article/293823/collecting-the-support-bundle-from-ops-m.html