How do you tail openshift log files? I issued the following command:
rhc tail myapp
It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop batch or not. How can I display last few errors and may be browse page by page? Is there page down/ page up shortcuts?
The 'rhc tail' command reads the last few lines of each of your log files and continues to feed subsequent log messages to your console. To view the entire log file, please review:
https://www.openshift.com/faq/how-to-troubleshoot-application-issues-using-logs
You can also download them:
Feasible also in windows directly in git bash.
you can see by running:
Adding
-a
option fix this issue for me.Openshift place logs in different files, so if you want get logs of a specific file then you can add -f file/address/and/name
Example :
also you can ask for specific number of lines by adding -o "-n 40" in command. Above command will get last 40 lines.
Example :