Tried maria db audit plug-in in MYSQL using the reference(https://mariadb.com/blog/activating-auditing-mariadb-and-mysql-5-minutes).
I didn't see option to dump audit log into database table and looking to try with some workaround to achieve this.
Option#1 - Write shell scripts to dump audit log with the appropriate table structure(Timestamp, Server-Host, User, Client-Host, Connection-ID, Query-ID, Operation, Database, Table, Error-Code) which will be invoked by cron job. It should have capability to load fresh audit log(server_audit.log.xx) to avoid duplicate data in database table. It also requires two steps (Step#1-audit plug-in dumps audit logs into flat file, Step #2- Shell Script dumps audit logs into database table from flat file), which is not a effective approach.
Option#2 - Addition extension on server_audit.so which provides functionality to dump audit data directly into table.
I didn't get source code for server_audit.so. Being Maria DB audit plug-in free software, is it fare enough to try for getting source code of server_audit.so? Anybody tried to override logging audit data into flat file and log audit data directly into database table?