Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8127

Unable to set the server_audit_file_path to any directory outside the data dir.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.0.18
    • N/A
    • Plugin - Audit
    • None
    • CentOS Linux release 7.0.1406

    Description

      Unable to set the server_audit_file_path to any directory outside the data dir. As per the variable status we are able to set the path to a different location, outside the data dir. But the logs are not physically created. Following are the details.

      #chown -R mysql.mysql /media

      MariaDB [(none)]> SET GLOBAL server_audit_logging=OFF;
      Query OK, 0 rows affected (0.00 sec)
      MariaDB [(none)]> SET GLOBAL server_audit_file_path="/media/backups/audit/server_audit.log";
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [(none)]> SET GLOBAL server_audit_logging=ON;
      Query OK, 0 rows affected, 2 warnings (0.00 sec)
       
      MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE 'server_audit_file_path%';
      +------------------------+---------------------------------------+
      | Variable_name          | Value                                 |
      +------------------------+---------------------------------------+
      | server_audit_file_path | /media/backups/audit/server_audit.log |
      +------------------------+---------------------------------------+
      1 row in set (0.00 sec)
      MariaDB [(none)]>  set global server_audit_file_rotate_now=ON;
      Query OK, 0 rows affected (0.00 sec)

      # ll /media/backups/audit/
      total 0

      Attachments

        Activity

          People

            Unassigned Unassigned
            arunjith Arunjith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.