This article describes how to collect BOSH Director logs. These logs are helpful to troubleshoot BOSH Tasks internal workflow.
NOTE: Please check this KB if you want to collect additional logs for OpsManager, Bosh director and Bosh VM managed how to collect the logs for OpsManager Bosh director and system logs for Bosh VM managed
The Director logs can be collected from a machine that has SSH access to the PCF foundation, precisely to the Director VM.
In this procedure below, I have taken an example where the local machine has direct access to Director VM.
Login to Ops Manager GUI as admin user and collect the below details from Director tile:
Login to BOSH Director VM:
~$ ssh vcap@{bosh_director_ip}
>{vcap_password}
Create a tar of the log directory and change the owner to vcap user:
~$ sudo -i
~$ tar zcvhf /home/vcap/bosh_logs.tgz /var/vcap/sys/log
~$ chown vcap:vcap /home/vcap/bosh_logs.tgz
Copy the bosh_logs to the local machine (or the machine that was used to SSH to the Director):
~$ scp vcap@{bosh_director_ip}:"/home/vcap/bosh_logs.tgz" .