I’m testing the audit plugin on percona-server 5.7.22 and i want to exclude a user from the logs, however audit_log_exclude_accounts/audit_log_include_accounts parameters doesn’t seem to change the logging.
i tried several variations on “user_test[user_test] @ localhost [localhost]”
then i tried to do audit_log_include_accounts = “my_admin@localhost” to log only queries from my_admin user, also without effect
@grosenthal I am sorry: missed your reply. But in your case configuration changes were not applied to the plugin variables. Please check if you restarted the server after changing configuration file and if yes: if the configuration file located in the location which mysqld reads at the startup.
Others who experience the same problem, please, make same checks: what the query “show variables like ‘%audit%’;” outputs and if it is the same as you expect.
This is the format of what I want to exclude, but there are many users with many usernames, database names and hostnames.
How to I use wild cards in the exclude entry in the config file to exclude common usernames from ANY systems that contains spaces and special characters?