Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I Send logs to AWS CloudWatch from Apigee PostClientFlow?

Hello,

How to send logs to AWS (CloudWatch) from Proxy's Postclientflow ?

CloudWatch cannot take syslog as input, it has REST API or SDK to push logs but how to use it with MessageLogging policy ?

Thanks.

Solved Solved
1 2 2,195
1 ACCEPTED SOLUTION

If CloudWatch has a REST API, then you can use ServiceCallout in PostClientFlow to send the message to the endpoint. The endpoint needs to be publicly accessible, publicly routable.

I think Apigee documentation states that the only policy permitted for use within PostClientFlow is the MessageLogging policy. BUT, Apigee operations can also configure your organization to allow ServiceCallout in PostClient Flow. To make this change, contact your Apigee support rep. There's no charge for that.

So if you can figure out how to make a POST call to your CloudWatch endpoint, with the appropriate credentials and payload, then ... you should be able to use ServiceCallout to emit that call for every request that Apigee handles.

View solution in original post

2 REPLIES 2