How to obtains logs from Worker/Controller manually

Issue

It is not possible to create a CJE support bundle and we need to review the logs from a worker/controller.

Environment

Resolution

Access to the worker/controller and compress the log files into a tar.xz file.

dna connect worker-1
sudo tar -chJf /tmp/logfiles.tar.xz /var/log/syslog /var/log/syslog.1 /var/log/messages /var/log/messages.1 /var/log/kern.log /var/log/cloud-init.log /var/log/cloud-init-output.log /var/log/mesos/* /var/log/zookeeper/zookeeper.log /var/lib/mesos/slaves  /var/log/router
sudo chmod ugo+r /tmp/logfiles.tar.xz
exit

download the generated file

dna copy  -rs /tmp/logfiles.tar.xz .

finally, remove the compressed file.

dna connect worker-1
sudo rm /tmp/logfiles.tar.xz
exit
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.