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

Anu Engineer commented on HDDS-376:
-----------------------------------

{quote} * Why not wrap Level,AuditEventStatus and Throwable within 
AuditMessage? This will make audit message self sufficient for logging. With 
this we can provide a single API to users to log all there messages.{quote}
This seems like a reasonable approach that we must investigate. 
[~dineshchitlangia] Can you see if API looks better with this in a separate 
Jira? [~ajayydv] Do you mind if I go ahead and commit this patch, since this is 
an improvement to the code and not an issue. we can discuss that improvement in 
a new Jira if that is ok with you.

> Create custom message structure for use in AuditLogging
> -------------------------------------------------------
>
>                 Key: HDDS-376
>                 URL: https://issues.apache.org/jira/browse/HDDS-376
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>            Reporter: Dinesh Chitlangia
>            Assignee: Dinesh Chitlangia
>            Priority: Major
>              Labels: audit, logging
>             Fix For: 0.2.1
>
>         Attachments: HDDS-376.001.patch, HDDS-376.002.patch, 
> HDDS-376.003.patch, HDDS-376.004.patch
>
>
> In HDDS-198 we introduced a framework for AuditLogging in Ozone.
> We had used StructuredDataMessage for formatting the messages to be logged.
>  
> Based on discussion with [~jnp] and [~anu], this Jira proposes to create a 
> custom message structure to generate audit messages in the following format:
> user=xxx ip=xxx op=XXXX_XXXX \{key=val, key1=val1..} ret=XXXXXX



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

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

Reply via email to