How to get logs of a pod in OpenShift

You’ll need the pod’s name, the project’s name and access to the openshift master.

Then you can run the command:

oc logs -n <project_name> <pod name>

for example:

oc logs toddlers-47-2tjj2 -n toddlers