You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hui An (JIRA)" <ji...@apache.org> on 2019/07/05 07:22:00 UTC

[jira] [Commented] (HIVE-21943) Why do we not have audit log in HiveServer2?

    [ https://issues.apache.org/jira/browse/HIVE-21943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879036#comment-16879036 ] 

Hui An commented on HIVE-21943:
-------------------------------

[~Rajkumar Singh] Could you please review this patch?

> Why do we not have audit log in HiveServer2?
> --------------------------------------------
>
>                 Key: HIVE-21943
>                 URL: https://issues.apache.org/jira/browse/HIVE-21943
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Hui An
>            Priority: Major
>             Fix For: 3.1.2
>
>         Attachments: HIVE-21943.patch.1
>
>
> Currently, we have audit log in the metastore( see [HIVE-1948|https://issues.apache.org/jira/browse/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 ip address, not actual user's ip address. This could cause difficult problems when we want to locate user's ip address. So I am thinking 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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)