API Transaction Logging
About this task
Why API Transaction Logging?
You can enable transaction logging for API to record and view the activities of your API. This record keeps a track of when an event occurred, why it occurred and what was impacted. The audit logs provide a detailed record of various auditable events of an API such as user login and logout details and the user responsible for it. By logging the transactions of the API, you can learn more about API activities, which may be useful for troubleshooting if something goes wrong.
webMethods API Gateway has the capability to log transactions and capture data of various auditable events of APIs. By default, webMethods API Gateway does not log the transactions. You must enable transaction logging so that the log data for the API to view the analytics of the API and detect anomalies.
This section describes how to activate the online_petstore API in webMethods API Gateway, enable transaction logging of the API, and view the logs and analytics at the API level.
Before you begin
Ensure the API you are working with is created and enforced with the required policies.