About Event Forwarding
Sometimes you need to forward the Anypoint API Analytics events to a third-party system. An example of this could be integrating with ELK or other analytics system.
There are two ways to export events:
Use the API Analytics Report API to pull the data. One consideration with this method is that the API has limit on the number and frequency of events that can be reported. Additionally, events may have delays of up to 10 minutes from the time the event is generated to the moment it is available for query.
Forward API Analytics events from the Gateway to configured HTTP endpoint. To configure this on CloudHub, configure the
anypoint.platform.analytics_base_urlgateway property from the Settings tab of Runtime Manager.
Setting this property configures the base URL where the events are posted.
In the example shown above, the events are published to:
using the POST method and GZIP for compression.
Note: The disadvantage of this approach is that events are not published to AnyPoint Platform and API Analytics and API Manager do not display information about API calls.