# Audit log plugin - audit\_log\_exclude\_accounts

**URL:** <https://forums.percona.com/t/audit-log-plugin-audit-log-exclude-accounts/16884>\
**Category:** MySQL & MariaDB\
**Tags:** mysql, closed-no-reply\
**Created:** [August 3, 2022, 8:20pm UTC](https://forums.percona.com/t/audit-log-plugin-audit-log-exclude-accounts/16884 "2022-08-03T20:20:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ariel\_Abehssera](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ariel_abehssera/32/7144_2.png) [@Ariel\_Abehssera](https://forums.percona.com/u/Ariel_Abehssera)\
**Post date:** [August 3, 2022, 8:20pm UTC](https://forums.percona.com/t/audit-log-plugin-audit-log-exclude-accounts/16884/1 "2022-08-03T20:20:20Z")

</div>

Hi everyone, this is my first post here 🙂

We are trying to filter out all users that start with “p\_%”.

I read here that “you can use wildcards in usernames, but only if they match records in the mysql.user table”

Can this be done with audit\_log\_exclude\_accounts? it didn’t work for us, we tried the following:

audit\_log\_exclude\_accounts=p\_%@%,p\_%@%,p\_\*@%

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Shashi\_Kanth\_Reddy\_P](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shashi_kanth_reddy_p/32/20206_2.png) [@Shashi\_Kanth\_Reddy\_P](https://forums.percona.com/u/Shashi_Kanth_Reddy_P)\
**Post date:** [February 20, 2025, 1:46am UTC](https://forums.percona.com/t/audit-log-plugin-audit-log-exclude-accounts/16884/2 "2025-02-20T01:46:01Z")

</div>

Did you figure out the hack ?
