ibm-cloudcloud-foundryibm-cloud-tools

Not able to get my application logs using "cf logs my-cool-app" command (CF version 6.27)


I see an issue just like this from a few years ago, but I am facing the same problem.

I am using cf version 6.27.0+d26b32dcc.2017-06-08 and bx version 0.5.4+ae22935-2017-05-18T06:24:28+00:00

When I issue bx app logs <myappname>, I get this error Loggregator endpoint missing from config file If I issue cf logs <myappname>, it works like a charm.

Can anyone provide guidance on this? thank you


Solution

  • bx app logs is using embedded cf cli, while that embedded version cf cli is too old.

    A workaround is to copy the cf cli binary to directory "/usr/local/Bluemix/bin/cfcli"