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.