Chapter 6. Installing Red Hat OpenShift 3.11 on IBM PowerVC 153
You can get a list of events in a project by using the oc events command as follows:
The oc logs RESOURCE_NAME command retrieves the log output for a specific build, 
deployment, or pod. This command works for builds, build configurations, deployment 
configurations, and pods.
To view the logs for the registry Pod use the oc logs:
The oc rsync command copies the contents to or from a directory in a running pod. If a pod 
has multiple containers, you can specify the container ID by using the -c option. Otherwise, it 
defaults to the first container in the pod. This is useful for transferring log files and 
configuration files from the container.
To copy contents from a directory in a pod to a local directory, run the following command:
oc rsync <pod>:<pod_dir> <local_dir> [-c <container>]
To copy contents from a local directory to a directory in a pod, run the following command:
oc rsync <local_dir> <pod>:<pod_dir> -c [<container>]
Use the oc port-forward command to forward one or more local ports to a pod. This allows 
to listen on a specific or random port locally, and have data forwarded to and from specific 
ports in the pod. This command features the following format:
oc port-forward <pod> [<local_port>:]<remote_port>
oc get events -n default
LAST SEEN   FIRST SEEN   COUNT     NAME                                       KIND                   
SUBOBJECT   TYPE      REASON           SOURCE                               MESSAGE
7m          4d           704       template-service-broker.15d413288a764433   
ClusterServiceBroker               Normal    FetchedCatalog   
service-catalog-controller-manager   Successfully fetched catalog entries from broker.
2m          4d           1403      ansible-service-broker.15d41326aef38cda    
ClusterServiceBroker               Normal    FetchedCatalog   
service-catalog-controller-manager   Successfully fetched catalog entries from broker.
Note: For more information about events in OpenShift Container Platform 3.11, see this 
web page.
oc logs docker-registry-3-4flql
time="2019-11-09T19:08:13.824438413Z" level=info msg=response go.version=go1.9.7 
http.request.host="10.130.0.48:5000" 
http.request.id=274b894e-93b8-4186-9757-f4736ba792a9 http.request.method=GET 
http.request.remoteaddr="10.130.0.1:48328" http.request.uri=/healthz 
http.request.useragent=kube-probe/1.11+ 
http.response.duration="53.286μs" http.response.status=200 http.response.written=0 
instance.id=29752895-706b-4169-951c-351af53ad214
Note: The OpenShift Container Platform 3.11 CLI Reference is available at this web page.