Skip to main content
Version: v23.0

Container Log Collection

Summary

This article covers how to collect logs from containers on Kubernetes or Docker and upload them to DH2i for support to analyze.

Information

  1. List the pods.

    kubectl get pods
  2. Collect the pod logs and output to file.

    kubectl logs <pod_name> > <pod_name>.log
    info

    With side-car container deployments, the name of the container is also required.

    kubectl logs -c <dxe|sql> <pod_name> > <pod_name>.log
  3. Upload the log file using DH2i Client Uploads (Requires client login).