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

Brahma Reddy Battula commented on HDFS-5040:
--------------------------------------------

bq.AUDITLOG.info(AUTH_SUCCESSFUL_FOR + user);

This is connection level , not for every operation.

I am thinking, something like below.

Change {{logAuditEvent(...)}} to default in {{FSNamesystem.java}}
{code}
-  private void logAuditEvent(boolean succeeded, String cmd, String src)
+  void logAuditEvent(boolean succeeded, String cmd, String src)
{code}
call in {{NameNodeRpcServer.java}} as follows.
{code}
+    namesystem.logAuditEvent(true,"refreshSuperUserGroupsConfiguration",null);
{code}

> Audit log for admin commands/ logging output of all DFS admin commands
> ----------------------------------------------------------------------
>
>                 Key: HDFS-5040
>                 URL: https://issues.apache.org/jira/browse/HDFS-5040
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: namenode
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Raghu C Doppalapudi
>            Assignee: Kuhu Shukla
>              Labels: BB2015-05-TBR
>         Attachments: HDFS-5040.001.patch, HDFS-5040.patch, HDFS-5040.patch, 
> HDFS-5040.patch
>
>
> enable audit log for all the admin commands/also provide ability to log all 
> the admin commands in separate log file, at this point all the logging is 
> displayed on the console.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to