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

Xiao Chen commented on HADOOP-13396:
------------------------------------

Thanks again Sean and Allen for the valuable comments.

For this jira, the goal is to:
# add a json format audit logger to the KMS
# without impacting the existing plain text audit logging output.
# with the required fields for the json format logging (than the current plain 
text).

I'm aware json is not the magical solution, but what I'm trying to do here is 
to abstract the actual logging format from the existing audit log calls, so one 
can add other types as a plugin, such as Avro like Sean has generously offered.

The difficulty, IMHO, is that the existing audit log doesn't have a 
well-defined API, or even consistent format for different result codes (I'll 
attach an example log). Attached a patch to express the idea: #1 and #2 are 
done via extraction, and #3 are only changed in the new json format logger. 
Existing format is verified by the current tests, which I enhanced in the 
dependent jira HADOOP-13395.

Appreciate your review and feedback.

> Add json format audit logging to KMS
> ------------------------------------
>
>                 Key: HADOOP-13396
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13396
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: kms
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>         Attachments: HADOOP-13396.01.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to