How to view customer usage information?

Through Apigee partners can develop applications that can be used by end-users. When the end-user uses the application, the API call is made. Is there any way we can capture any user information from the logs? For example partner company X developed application Y which uses the API service Z. Now when user W uses Y, the application calls Z through Apigee. Now, this event is logged possibly with W's information. Is there any way to get this information who used the application?

0 1 139
1 REPLY 1

Logfiles written by Apigee Edge don't store user-specific information. That would be a violation of PII privacy rules.

You can modify your API proxies to track user-specific data. There are some options; one involves logging the data to an external system. The other involves adding data into the analytics database kept by apigee Edge. In either case the information will probably be PII (Personally IDentifiable Information) and YOU are responsible for maintaining the privacy of that information. before proceeding, you should consult with your own legal advisors on how best to do this.

  1. external system
    Like a Splunk system, syslog, or Stackdriver. With MessageLogging policy, or with a simple asynchronous HTTP callout (with ServiceCallout or JavaScript; search on community for examples), you can emit information into 3rd-party logging systems. Then you can perform analysis using that logged information.
  2. Apigee Edge analytics
    Use the StatisticsCollector policy. Search here, Anil has done a nice screencast on this topic.