How to manually obtain logs of a tenant

Issue

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

Environment

Resolution

First of all we have to know where the tenant is running, to know that we have to run this command cje run find-worker-for TENANT_NAME where TENANT_NAME is the name of the tenant (cjoc, castle, palace, elacticsearch, name of the master), then we can access to the worker and compress the log files into a tar.xz file.

dna connect worker-1
sudo tar -chJf /tmp/logfiles.tar.xz $(find  /var/lib/mesos/slaves|grep TENANT_NAME)
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

2 Comments

  • 0
    Avatar
    Irmantas Marozas

    Small thing, but might be a show stopper for inexperienced users:

    First step creates: logs.tar.xz.

    Rest examples are referring to logfiles.tar.xz.

     

    Edited by Irmantas Marozas
  • 0
    Avatar
    Arnaud Heritier

     

    Hi Irmantas

      Effectively it is misleading. I pushed the fix to our team. It will be updated soon.

      Thanks a lot

    Best regards

Please sign in to leave a comment.