MySQL Enterprise Audit connections for the user are filtered using the default account filter if there is one, and are not logged otherwise. If the name is  % , the function removes the default account filter that is used for any user account that has no explicitly assigned filter. Arguments: Example: Arguments: Example: • user_name : The user account name as a string in  user_name @ host_name  format, or  %  to represent the default account. Return value: A string that indicates whether the operation succeeded.  OK  indicates success.  ERROR:  message indicates failure. Given a filter name and definition, adds the filter to the current set of filters. If the filter already exists and is used by any current sessions, those sessions are detached from the filter and are no longer logged. This occurs because the new filter definition has a new filter ID that differs from its previous ID. A string that indicates whether the operation succeeded.  OK  indicates success.  ERROR:  message indicates failure. Return value: Given a user account name and a filter name, assigns the filter to the user. A user can be assigned only one filter, so if the user was already assigned a filter, the assignment is replaced. Filtering of current sessions for the user remains unaffected. New connections are filtered using the new filter. As a special case, the name  %  represents the default account. The filter is used for connections from any user account that has no explicitly assigned filter. • audit_log_filter_set_user( user_name ,  filter_name ) • filter_name : A string that specifies the filter name. • definition : A  JSON  value that specifies the filter definition. • audit_log_filter_set_filter( filter_name ,  definition ) mysql>  SELECT audit_log_filter_remove_user(’user1@localhost’); +-------------------------------------------------+ | audit_log_filter_remove_user(’user1@localhost’) | +-------------------------------------------------+ | OK | +-------------------------------------------------+ mysql>  SET @f = ’{ "filter": { "log": false } }’; mysql>  SELECT audit_log_filter_set_filter(’SomeFilter’, @f); +-----------------------------------------------+ | audit_log_filter_set_filter(’SomeFilter’, @f) | +-----------------------------------------------+ | OK | +-----------------------------------------------+ 1525