# Changes in my.cnf not applying to audit plugin

**URL:** <https://forums.percona.com/t/changes-in-my-cnf-not-applying-to-audit-plugin/28463>\
**Category:** MySQL & MariaDB\
**Tags:** percona\
**Created:** [February 14, 2024, 10:19am UTC](https://forums.percona.com/t/changes-in-my-cnf-not-applying-to-audit-plugin/28463 "2024-02-14T10:19:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DencyGomes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dencygomes/32/15704_2.png) [@DencyGomes](https://forums.percona.com/u/DencyGomes)\
**Post date:** [February 14, 2024, 10:19am UTC](https://forums.percona.com/t/changes-in-my-cnf-not-applying-to-audit-plugin/28463/1 "2024-02-14T10:19:30Z")

</div>

Hello Sir,

I am trying to install percona audit plugin on rhel 7.9 server running mysql 8.0.33 community version.  
After adding the variables in my.cnf and installing the audit plugin, I am not able to see the updated variables.

The audit log is generated inside the data directory.

I have tried uninstalling and reinstalling the plugin but still it’s the same.

If I add the variables and try to login to mysql it gives below error.  
mysql: [ERROR] unknown variable 'audit\_log\_file=/abc/def/ghi/audit.log

after hashing out the variables and after restart the values I can see in show global variables is as follows.

mysql\> show global 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 | OLD |  
| audit\_log\_handler | FILE |  
| audit\_log\_include\_accounts | |  
| audit\_log\_include\_commands | |  
| audit\_log\_include\_databases | |  
| audit\_log\_policy | ALL |  
| audit\_log\_rotate\_on\_size | 0 |  
| audit\_log\_rotations | 0 |  
| audit\_log\_strategy | ASYNCHRONOUS |  
| 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)

Please help as I have tried multiple times and it’s not working.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [February 14, 2024, 4:18pm UTC](https://forums.percona.com/t/changes-in-my-cnf-not-applying-to-audit-plugin/28463/2 "2024-02-14T16:18:42Z")

</div>

Are you adding the parameter inside `[mysql]` or inside `[mysqld]`? Configuration for the server belongs in `[mysqld]` section.

---

<div class="post-metadata">

**Author:** ![DencyGomes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dencygomes/32/15704_2.png) [@DencyGomes](https://forums.percona.com/u/DencyGomes)\
**Post date:** [February 20, 2024, 8:53am UTC](https://forums.percona.com/t/changes-in-my-cnf-not-applying-to-audit-plugin/28463/3 "2024-02-20T08:53:53Z")

</div>

Hello Sir,

Added the parameters under [mysqld] and it worked.

Thank you so much.
