Configuring events for webMethods API Gateway destination
Configure the webMethods API Gateway destination so that the events and performance metrics data can be published to webMethods API Gateway.
About this task
By default, error events, lifecycle events, policy violation event, and performance data are published to webMethods API Gateway.
Procedure
What to do next
When you see that you are not able to parameterize custom indices for transaction events in webMethods API Gateway.
Custom indices can be configured for transaction events in the webMethods API Gateway under page. But parameterizing custom indices is not supported in API Gateway. For example, appending the current date to the index name. Consider an index name attendant, it must be appended with the current date that is txnData_12_08_2020 and rolled up daily.
Resolution
You can achieve this use case by using the Elasticsearch aliases and rollover APIs of Elasticsearch.
A sample use case is as follows
Create an alias in the Elasticsearch server, for example txnData and an index rollover like txnData_12_08_2020, txnData_12_08_2020. The alias txnData points to all the indices txnData_12_08_2020, txnData_12_08_2020. One of the indices in the list is write-enabled and that are the latest and the rest of the indices is read-only.
webMethods API Gateway sends the events to txnData alias and that alias defines the index that it writes the data to, based on the date.