From 919d5280139f96dfca89fdcd93c8c2889a32a83c Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu, 13 Mar 2025 06:54:31 -0500 Subject: [PATCH] PS-9711 [DOCS] - document host wildcard support in audit_log_filter_set_user() - 8.0 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 c692d152627..4cc4bc8b622 100644 --- a/docs/audit-log-filter-variables.md +++ b/docs/audit-log-filter-variables.md @@ -302,6 +302,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.0.42, 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.