This topic explains how to download logs from BOSH-deployed VMs in your VMware Tanzu Kubernetes Grid Integrated Edition environment using the BOSH Command Line Interface (CLI).
In Tanzu Kubernetes Grid Integrated Edition, you can download logs from any BOSH-deployed VM, such as the TKGI API VM or Kubernetes cluster VMs.
You might need to download these logs when troubleshooting or auditing your TKGI environment.
To download logs from a BOSH-deployed VM:
After logging in to the BOSH Director, list the names of your BOSH deployments by running:
bosh -e ENVIRONMENT deployments
ENVIRONMENT is your BOSH environment alias.
Identify the names of the VMs that you want to retrieve logs from by listing the VMs in your target BOSH deployment:
bosh -e ENVIRONMENT -d DEPLOYMENT vms
ENVIRONMENTis the BOSH environment alias.
DEPLOYMENTis your target BOSH deployment name. Kubernetes cluster deployment names begin with
service-instance_and include a unique identifier.
For example, the following command lists the VMs in a Kubernetes cluster:
$ bosh -e tkgi -d service-instance_ae681cd1-7ff4-4661-b12c-49a5b543f16f vms
Download logs from a VM:
bosh -e ENVIRONMENT -d DEPLOYMENT logs VM-NAME
$ bosh -e tkgiFor more information about log files, see View Log Files in Using BOSH Diagnostic Commands in Tanzu Kubernetes Grid Integrated Edition.