Open sujdev7 opened 6 months ago
We need a way to integrate audit logs to our operational tooling. It does not have to be a cron job, we just need the audit log in a file that can be tailed, consumed by ELT tools such as fluentd.
@mdani-sg you should be able to connect to the mongoDB running in your appsmith instance and simply pull it from there. You can also download the audit log file manually using the export option in the audit logs page
@Nikhil-Nandagopal can you please give us an example of Mongo query?
@Nikhil-Nandagopal could you provide an example? Better even to have an article on how to pull out logs from the DB.
@Nikhil-Nandagopal is it possible to achieve this using the new workflow feature? If so, could you please point to some documentation on how to use it?
@yalhyane - Please share your license email to workflows@appsmith.com
so we can enable workflows for you once it's out for beta. Thank You.
@infinitetrooper thank you for the info, I'll provide the license email later. My current concern is whether it's possible to access audit logs from workflows?
@yalhyane - Yes, you can connect the Mongo DB of your instance as a datasource in Appsmith and build workflow/apps on top of it to fetch the data you need.
@infinitetrooper I can go with that, thank you. Could you please let me know when workflows will be available for use?
We're starting onboarding this month, please drop an email to workflows@appsmith.com
and I'll add you to the list.
Is there an existing issue for this?
Summary
There should be a way to download audit logs using a cron job. The downloaded data can be used as a datasource to create usage analytics dashboards, which can show trends like # of users, # of users by apps, adoption of apps over time and more. It will also help enterprises split their Appsmith bill among their different departments
Why should this be worked on?
Analytics on Appsmith usage has been a long requested feature, but it would be hard to build a one-size fits all. This functionality will help businesses track and eventually, maximize adoption of their apps