Retrieving logs

About this task

Perform this procedure if you are using fix pack 2 or earlier.

Procedure

  1. Run this command using OpenShift to retrieve logs from the running pods:
    kubectl logs <podName> > podName.txt
  2. Navigate to the installation directory.
  3. Run this script to retrieve logs from all running pods:
    ./saveZapmClusterLogs.sh
    Note:

    By default, the script considers the namespace to be ibm-zapm. If you are using a different namespace, then modify the script and update the NAMESPACE= variable at the top of the script. The log files will be written to the ./zapm-logs/ directory.