how do I tail logs in open shift using oc client
Use the --tail
option.
oc logs api-myapp-v1-48-cdrs2 --tail=50
You can use the --help
option to commands to find out what options they accept.
For some hands on exercises to help you learn OpenShift, see:
- https://learn.openshift.com
use -f
along with tail
, that will work
oc logs -f api-myapp-v1-48-cdrs2 --tail=5