Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21943

Add audit log in HiveServer2

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2, 2.2.0, 3.1.0
    • Fix Version/s: None
    • Component/s: HiveServer2, Logging
    • Labels:
      None
    • Target Version/s:

      Description

      Currently, we have audit log in the metastore( see HIVE-1948), which provides us useful info, like metadata operations, ip address, etc. But when we use HS2 to connect HMS, all operations would assoicate with HS2's ip address, not actual user's ip address. This could cause difficult problems when we want to locate the actual user. So I am wondering if we could add audit log in the HS2 too?

      We could add much infomation in the audit log of HS2, like username, ipAddress, queryId, queryStr, etc.

        Attachments

        1. HIVE-21943.patch.3
          2 kB
          Hui An
        2. HIVE-21943.patch.2
          2 kB
          Hui An
        3. HIVE-21943.patch.1
          2 kB
          Hui An

          Issue Links

            Activity

              People

              • Assignee:
                Bone An Hui An
                Reporter:
                Bone An Hui An
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: