Hello,
For our company needs we are currently testing the Audit Log Filter component provided by Percona server for MySQL.
We create a VM with Ubuntu 24.04-LTS and Percona server 8.4.3-3. Once the default installation was done, we added new user for remote connections, we added fake data, and then we followed the doc to install the audit component.
As first test we decide to log everything happens so we create the follwing rule :
select audit_log_filter_set_filter('log_actions', '{ "filter": {"log": true} }');
select audit_log_filter_set_user('%', 'log_actions');
And during tests we notice different results :
- if database connection is made from local client, queries are written to the log file
- if database connection is made from remote client using private subnet, queries are written to the log file
- if database connection is made from remote client using db server public IP address, queries are not always written to the log file
For this last case the only thing which differs is the client location and therefore the client IP address but we have no idea why in some case it works and why in some others it doesnât (we precise that client connections are always successful only audit log writes sometimes fail).
Do you think this is a network problem ? How can we confirm this ?
Any help would be appreciated.
Thank you.