Hi Everyone,
I have a requirement to enable logging on an Apigee API proxy. The logs should be logged to the Splunk server. The issue is that the Splunk server is not receiving the logs. I would appreciate if someone could identify what am I doing wrong and how can I achieve the required functionality?
I am using MessageLogging policy in response flow of PostClient flow of the Apigee API as below:
The configurations for the policy are as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> ML-LogToSplunk { "data": "This is a test log from Apigee ML policy" } https://{host}:{port}/services/collector/event JSON [HEC Token] [index]