- Ensure you're logged in with
oc
- Find the relevant pod(s):
$ oc get pods --namespace $NAMESPACE
NAME READY STATUS RESTARTS AGE
mypod-7d57d6599f-tq7vt 1/1 Running 0 12m
- Download files from the pod (requires the container has the
tar
binary installed; if there is more than one container,
specify the container with -c $CONTAINER
):
$ oc cp --namespace $NAMESPACE $PODNAME:/logs/messages.log messages.log
tar: Removing leading `/' from member names
Previous Section (OpenShift Review Logs Recipe) |
Next Section (OpenShift Investigate Source of Signal) |
Back to Table of Contents