Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee API to get historical logs with API call metrics

Hi Team, 

We have a requirement to show the API call log data on our developer portal. 
Basically we need to show below details for each API call made for a particular Developer App:

Date and time, App ID/requesting source ID for all calls and responses,  Response codes and Response times 

I see we have Apigee Metrics API but looks like that will only give us aggregate data and not individual call details. Can someone guide me on how can we achieve this ? 

We are using Apigee X. 

Thanks in advance! 

Solved Solved
0 6 769
1 ACCEPTED SOLUTION

Thanks for clarifying @harishav 

The Metrics API will only provide those details you see. It has a bunch of metrics and dimensions you can use to get more stats. 

If you want individual logs, you will have to use a logging system like Cloud logging. You can use the Message Logging policy and push the necessary info into the logs and then query it using the Cloud Logging API. Other logging products can also do this. So try that route. The Metrics API only provides analytics data but not individual logs.

View solution in original post

6 REPLIES 6