Appendix C. Checking OpenShift logs

You can use the oc logs command to view the OpenShift logs or the logs that the console provides for a running container.

Procedure

  • Enter the following command:

    $ oc logs -f <pod_name> <container_name>
    Note

    In the preceding command, replace <pod_name> and <container_name> with appropriate values for your deployment.

    Access logs are stored in the /opt/jws-5.7/tomcat/logs/ directory.