Has anyone had any luck using the audit_log_filter plugin / component from Percona?
I have installed Percona Server for MySQL 8.0 (8.0.41-32) and Percona Server for MySQL 8.4 (8.4.3-3) and followed the instructions to install it.I'm using Debian 12 (bookworm) if that makes any difference.
e.g.
run the script
audit_log_filter_linux_install.sql
to create the two tables and install the plugin / component.set up logging using:
SELECT audit_log_filter_set_filter('log_all', '{"filter": {"log": true}}');
SELECT audit_log_filter_set_user('%', 'log_all');
This should enable logging of all events for all users.
I then run a series of queries, that include create schema
/ create table
/ insert
/ update
/ delete
/ drop
etc.I've tried it with different usersI've tried it on workbench and from the cmdline
And yet the only thing that ever appears in the log is:
<?xml version="1.0" encoding="utf-8"?><AUDIT><AUDIT_RECORD><NAME>Audit</NAME><RECORD_ID>0_2025-03-13T11:47:51</RECORD_ID><TIMESTAMP>2025-03-13T11:47:51</TIMESTAMP><SERVER_ID>1</SERVER_ID></AUDIT_RECORD>
which is generated when the server restarts.
Am I missing something, or does it simply not work?