Using openshift rhc tail command

前端 未结 5 1604
一向
一向 2021-02-08 16:54

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

5条回答
  •  一整个雨季
    2021-02-08 17:51

    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 :

    rhc tail -f app-root/logs/nodejs.log -a myAppName

    also you can ask for specific number of lines by adding -o "-n 40" in command. Above command will get last 40 lines.

    Example :

    rhc tail -f app-root/logs/nodejs.log -o "-n 40" -a myAppName

提交回复
热议问题