Viewing Container Logs

All the Foresight REST API component containers publish their logs in the standard output device.

    Procedure
  1. To view logs of a particular container, run one of the following commands depending on the platform:
    • Kubernetes:

      kubectl logs <container_id> -n <k8s_namespace>

      Where <k8s_namespace> is the Kubernetes namespace that you have set in the deployment.properties file.

      Note: If <k8s_namespace> is not set, then its default value is fsrest.
      Tip: To follow logs, use --follow.
    • Docker:

      docker logs <container_id>