How to Track Entity Changes in FusionAuth Using the Audit Log API
-
We have been exploring methods for capturing changes to Entities. We want to keep an eye on the FusionAuth log file and transmit events to AWS Cloudwatch. We could handle them using Lambda (we have reviewed FusionAuth's sample script that explains how to configure that). However, we have examined that log and found no records related to Entities. Can we modify that via configuration? Or is the only method to obtain that information to execute a daemon script that routinely polls the audit-logs API?
-
Yes, you would need something on your end to poll the Audit Log to fetch changes made to the Entities. Currently. there's no way to enter a log into the system logs (fusionauth-app.log) or otherwise control what goes in there. We do have a similar example for Cloudwatch on exporting Login Records to Cloudwatch which should be helpful.
-