Re: REST API endpoint for accessing application logs


Marco Nicosia
 

You don't need to do the $(cf oauth-token | grep bearer) all within the
curl command.

Perhaps the auth issue will be more apparent if you break it down into each
individual step.

What happens if you run `cf oath-token` separately? Does the output look
OK? Do you see a line that contains bearer in it? What happens when you
manually put that line into the curl command?

-- Marco N.

On Thursday, October 15, 2015, Ponraj E <ponraj.e(a)gmail.com> wrote:

Hi,

Sorry for the spam.
Latest update : I am able to execute the command. But I dont have
authorization.

I get the message.
You are not authorized. Error: Invalid authorization

--
Ponraj
--
--
Marco Nicosia
Product Manager
Pivotal Software, Inc.
mnicosia(a)pivotal.io
c: 650-796-2948

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.