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

Audit: QUERY event contains an empty field and does not contain default schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The QUERY event has a position between IP address and connection ID, which seems to be always empty.
      At the same time, it does not log the default schema where the query was executed, while I think it should be expected for events of this type.

      The test already exists in server_audit.test and the result is recorded as described above:

      set global server_audit_incl_ddl_users='odin, dva, tri';
      create table t1 (id int);
      ...
      TIME,HOSTNAME,root[root] @ localhost [],,1,QUERY,set global server_audit_incl_ddl_users='odin, dva, tri'
      TIME,HOSTNAME,root[root] @ localhost [],,1,QUERY,create table t1 (id int)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: