How to remove node.js logs ?

For any Proxy Created on EDGE , we can see Node.js Logs on Top , once we login

URL: - To get Node.js Logs

https://api.enterprise.apigee.com/v1/organizations/siddharth1/environments/test/caches/nodejs/entrie...

This displays all the Node Js Logs for the Past 1 or 2 weeks , but I want the Logs for last 1 hour .

QUESTION - How do we clear the Node,js Logs ??

As I can see that , Node.js logs does not log beyond a certain limit

So wish to clear the Logs , so that I can debug the recently

generated logs.

Solved Solved
0 3 2,322
1 ACCEPTED SOLUTION

Hi @Barahalikar Siddharth

The URL you have is for cache entries

Nodejs logs are avaialble here - http://apigee.com/docs/management/api/cached-logs

API also provides filtering options to get only the latest logs, but i don see an option to clear the logs

Thanks

View solution in original post

3 REPLIES 3

Hi @Barahalikar Siddharth

The URL you have is for cache entries

Nodejs logs are avaialble here - http://apigee.com/docs/management/api/cached-logs

API also provides filtering options to get only the latest logs, but i don see an option to clear the logs

Thanks

@Anil Sagar

I would request you to please verify the link , you have provided

/organizations/{org_name}/environments/{env_name}/caches/nodejs/entries

I tried this , as per your solution

https://api.enterprise.apigee.com/v1/organizations/siddharth1/environments/test/caches/nodejs/entrie...

I am getting this error

{ "code" : "messaging.config.beans.CacheDoesNotExist", "message" : "Cache nodejs does not exist in environment test", "contexts" : [ ] }

As @mukundha has said , looks like there is no option to clear node.js logs

Thanks

Sid

@Barahalikar Siddharth , Agree... Deleted my answer 🙂