How to Obtain Edge Cloud Access Logs

On Apigee Edge Cloud you could obtain access logs of your Edge Cloud environment using following API Monitoring Management API resource:

https://apimonitoring.enterprise.apigee.com/logs

For an example, the below API request can be used for querying last 1000 HTTP 2xx logs of all API proxies of a given environment:

org=#organization name
env=#environment name

curl -X GET --header "Authorization: Bearer $TOKEN" \
"https://apimonitoring.enterprise.apigee.com/logs?org=${org}&env=${env}&select=2xx&limit=1000"

API reference documentation of this API resource can be found on the below documentation page:

https://apidocs.apigee.com/api-monitoring/apis/get/logs

Comments
zenithtrainings
New Member

With Cloudflare Workers, our JavaScript environment at the edge, it is possible to send traffic logs to arbitrary locations. In this post we are going to discuss an example Worker implementation on how to achieve this. So if you are building or maintaining your own traffic logging/analytics environment, read on.

To build the underlying script we are going to leverage sub requests. Sub requests, which can be spawned from the initial HTTP/S request, can be used to aggregate and compose a response from several back end services, or, like in the example discussed here, to post data to a specific endpoint. Sub requests can be made asynchronously and after the initial request has been fully served to avoid adding unnecessary latency to the main request.

imesh
Staff

Hi Zenith, as I know there is no mechanism available today for publishing Apigee Edge Cloud logs to an external endpoint. However, you could use Message Logging Policy in API proxies for publishing your own log records to an external endpoint or log management system. Using Message Logging Policy you could construct your log message using Flow Variables.

You could refer above documentation pages for more information on this.

Version history
Last update:
‎09-15-2019 10:24 PM
Updated by: