From 39fe363954b83f2719b67a2ac6367e45ead22e08 Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu, 13 Mar 2025 06:38:52 -0500 Subject: [PATCH] PS-9690 [Doc] Document host wildcards support in audit_log_filter_set_user() 8.4 On branch ps-9690 modified: docs/audit-log-filter-variables.md --- docs/audit-log-filter-variables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/audit-log-filter-variables.md b/docs/audit-log-filter-variables.md index b4e0f192450..22e7e3cc90e 100644 --- a/docs/audit-log-filter-variables.md +++ b/docs/audit-log-filter-variables.md @@ -305,6 +305,8 @@ mysql> SET audit_log_filter_set_filter('filter-name', @filter); This function assigns the filter to the selected user account. +Starting from Percona Server for MySQL 8.4.4, the audit_log_filter_set_user() UDF accepts account names with wildcard characters (`'%'` and `'_'`) in the host part. For example, you can use `‘usr1@%'`, `‘usr2%192.168.0.%’`, or `'usr3@%.mycorp.com'`. + A user account can only have one filter. If the user account already has a filter, this function replaces the current filter. If the user account is in a current session, nothing happens. When the user account connects again the new filter is used. The user name, `%`, is the default account. The filter assigned to `%` is used by any user account without a defined filter.