How to get QMetry logs from server?

When you log issues to QMetry Support by sending an email to qtmprofessional@qmetrysupport.atlassian.net, there might be times when Support would ask for QMetry logs on your server to investigate the issues. Here is how you can get QMetry logs from server and provide it to QMetry Support.

Steps when QMetry is installed with Docker

Login to your Linux Server 

  1. Go to the QMetry application directory which was mentioned during the installation/upgrade of QMetry. i.e. /opt/qmetryapp
  2. Create a directory "capturedlogs" under /opt/
    • cd /opt/
    • mkdir capturedlogs
  3. Go to QMetry logs directory:
    • cd <install location>/qmetryapp/logs/
      • i.e. cd /opt/qmetryapp/logs/
    • ls -ltr to view the files list. Copy all logs created for a given date along with catalina.out file.
    • cp <file_name1> <file_name2> /opt/capturedlogs
    • cd <install location>/qmetryapp/logs/qmetry-log 
    • ls -ltr to view the files list. Copy all logs created for a given date along with qmetry-access.log and qmetry.log
    • cp <file_name1> <file_name2> /opt/capturedlogs
  4. Copy all the logs files noted above for the given date to /opt/capturedlogs.

 After you copy all the logs under /opt/capturedlogs, zip them and send them over to QMetry Support by attaching them to your Support Ticket.

Steps when QMetry is installed Manually (without Docker) 

Login to your server 

  1. Go to QMetry installation directory:
    • Linux: /opt/QMetry OR /home/qmetry/QMetry
  2. Capture QMetry Application specific logs from ../QMetry/logs/qmetry-log/
    • ls -ltr 
    • Copy qmetry.log and qmetry-access.log.
    • Copy all the logs for a given date.
  3. Capture QMetry's Tomcat Application specific logs from ../QMetry/logs/
    • Copy the catalina.out file
    • Copy all the logs for a given date.

 After you copy all the logs from steps 2 and 3, zip them and send them over to QMetry Support by attaching it to your Support Ticket.