# Audit\_log\_filter.file parameter - Cannot change default location

**URL:** <https://forums.percona.com/t/audit-log-filter-file-parameter-cannot-change-default-location/39541>\
**Category:** MySQL & MariaDB\
**Created:** [October 13, 2025, 2:07am UTC](https://forums.percona.com/t/audit-log-filter-file-parameter-cannot-change-default-location/39541 "2025-10-13T02:07:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_a\_y](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@j\_a\_y](https://forums.percona.com/u/j_a_y)\
**Post date:** [October 13, 2025, 2:07am UTC](https://forums.percona.com/t/audit-log-filter-file-parameter-cannot-change-default-location/39541/1 "2025-10-13T02:07:22Z")

</div>

(Note: Using Percona MySQL 8.4.6-6 on RHEL 9)

When using the new audit log filter component by default the my.cnf file contains the following configuration:

audit\_log\_filter.file=audit\_filter.log

With the older audit plugin it was possible to change the location and file name of the log file, for example:

audit\_log\_file=/var/log/percona/audit.json

I can change the file name but if I also change the file location and restart mysql none of the audit parameters are loaded and the audit log file is not created.

Is this a known issue or is it no longer possible to change the location of the audit file this way?

---

<div class="post-metadata">

**Author:** ![Wayne\_Leutwyler](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/wayne_leutwyler/32/20829_2.png) [@Wayne\_Leutwyler](https://forums.percona.com/u/Wayne_Leutwyler)\
**Post date:** [October 13, 2025, 12:01pm UTC](https://forums.percona.com/t/audit-log-filter-file-parameter-cannot-change-default-location/39541/2 "2025-10-13T12:01:12Z")

</div>

This is working for me as expected. Did you verify that the correct user and group have the needed privileges to write to the location you have chosen? See below how mine it setup.

Here is whats in my my.cnf:

```auto
audit_log_filter.file=/var/lib/auditlog/audit.log

```

Here are user and group permissions.

```auto
-rw-r----- 1 mysql mysql 2563 Oct 13 07:54 audit.log

```

---

<div class="post-metadata">

**Author:** ![j\_a\_y](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@j\_a\_y](https://forums.percona.com/u/j_a_y)\
**Post date:** [October 13, 2025, 1:50pm UTC](https://forums.percona.com/t/audit-log-filter-file-parameter-cannot-change-default-location/39541/3 "2025-10-13T13:50:35Z")

</div>

That was the issue, thank you.

By the way your two articles on the audit log filter component are very helpful!

> **[Audit Log Filter Component](https://percona.community/blog/2025/09/18/audit-log-filter-component/)**
>
> The audit log filter component in MySQL 8.4 provides administrators with a powerful mechanism for auditing database activity at a fine-grained level. While it offers significant flexibility—such as selectively logging events based on users, hosts, or...

> **[Audit Log Filters Part II](https://percona.community/blog/2025/10/08/audit-log-filters-part-ii/)**
>
> In my first post on the MySQL 8.4 Audit Log Filter component, I covered how to install the component and configure a basic filter that captures all events. The Audit Log Filter framework offers a highly granular and configurable auditing mechanism,...
