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

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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

            Well the client's host supposed to be on that place accordingly to the spec. But i don't know at the moment where to get it as the auditing event doesn't have that field. So right, it's always empty.

            holyfoot Alexey Botchkov added a comment - Well the client's host supposed to be on that place accordingly to the spec. But i don't know at the moment where to get it as the auditing event doesn't have that field. So right, it's always empty.

            And what about the default schema?

            elenst Elena Stepanova added a comment - And what about the default schema?

            FIxed as the record format has been changed, particularly the database name was added.

            holyfoot Alexey Botchkov added a comment - FIxed as the record format has been changed, particularly the database name was added.

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.