I have tried to configure my audit plugin to exclude application users but to include all other users. This is the output from MySQL show variables like ‘%audit%’;
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2160760
Server version: 5.7.31-34 Percona Server (GPL), Release 34, Revision 2e68637
Copyright (c) 2009-2020 Percona LLC and/or its affiliates
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql> show variables like ‘%audit%’ ;
±----------------------------±---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
±----------------------------±---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| audit_log_buffer_size | 1048576 |
| audit_log_exclude_accounts | |
| audit_log_exclude_commands | |
| audit_log_exclude_databases | |
| audit_log_file | audit.log |
| audit_log_flush | OFF |
| audit_log_format | JSON |
| audit_log_handler | FILE |
| audit_log_include_accounts | users1@localhost,user2@localhost |
| audit_log_include_commands | delete,delete_multi,execute_sql,insert,load,truncate,update,update_multi,select,replace_select,insert_select |
| audit_log_include_databases | talksoft_qa |
| audit_log_policy | QUERIES |
| audit_log_rotate_on_size | 1073741824 |
| audit_log_rotations | 5 |
| audit_log_strategy | PERFORMANCE |
| audit_log_syslog_facility | LOG_USER |
| audit_log_syslog_ident | percona-audit |
| audit_log_syslog_priority | LOG_INFO |
±----------------------------±---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
18 rows in set (0.00 sec)
I am still getting log entries from users NOT on this list. Is this a known bug or is there a fix for this?