how do I tail logs in open shift using oc client

Viewed 19621

From the question you can tell I'm a newb.

At the moment to get the logs of my pod I'm doing a ...

oc logs -f api-myapp-v1-48-cdrs2

This shows me everything in the log. How can I tail them instead?

Also I was wodering if someone could point me out to a nice cheat sheet of open shift commands? One that is good for beginners.

thanks

2 Answers

use -f along with tail, that will work

oc logs -f api-myapp-v1-48-cdrs2 --tail=5
Related