(Module) Audit Log Development

Working on an Audit Log module for Tango/FreePBX to show changes made through the UI portal (and maybe file diff too, but starting with UI database changes)

Any thoughts/comments on this? Any ideas about existing functionality for this already in Tango/FreePBX?

The one thing you need to keep in mind is that not all changes are stored in the database back end. Numerous extension settings and other modules have settings that only exist in the AstDB. You cannot rely on the database only to track changes.

1 Like

Should be able to track changes in AstDB similarly to main UI DB I think?

There is no “clean and easy“ way to do this. You can use various hooks and tie in to every page to get and process form submission data but you will end up with a huge monolith of code and it will be a noghtmare to maintain. This almost needs to be done on a per module basis.

1 Like

I believe MariaDB has a audit pluggin but honestly I’ve never looked into it…

1 Like

Thought I’d share some progress on this. Any feedback welcome.

Unified View

GUI View

GUI View - Entry Details

Database View

Asterisk View

API View

1 Like

I like how this is coming together. I’d be interested in testing this out.

1 Like

Not ready for wide release yet, but I’d love to have some testers.

Let me know your GitHub username and I can add you to the repo.

1 Like

Invited you to the repo. Please feel free to share any comments.

If you find any bugs or other issues, opening a quick Issue on the repo would be super helpful, even if just for the sake of tracking. Appreciate it!

1 Like

This is super neat. I just installed it on a vanilla server, so I’m going to run through a bunch of tasks and let you know how it goes.

1 Like