You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2011/07/11 15:11:59 UTC

[jira] [Created] (HBASE-4082) Add API call audit trail

Add API call audit trail
------------------------

                 Key: HBASE-4082
                 URL: https://issues.apache.org/jira/browse/HBASE-4082
             Project: HBase
          Issue Type: Improvement
          Components: master, regionserver
            Reporter: Lars George
            Priority: Minor


It would be very helpful to correlate the log contents with API calls that have been made. This includes calls to split, compact, as well as bulkLoadHFile and so on. This could be stored in a separate log file if wanted, and be disabled by default (unless more want it on than off).

I could think of an AuditLogger class that is used to write them into a shared log context. It should log all primitive parameters as well as a reasonable amount of those that binary or larger.

Sure this could be implemented with an Audit coprocessor, but that isn't here yet, and also seems a bit overcomplicating things. BUt I am open for ideas.

We have it often that we get logs that show some sort of malfunction, but we cannot tell what happened beforehand. Some events can be inferred if you have intrinsic knowledge of the log messages that precede the event. But that is hardcore and not really user-friendly. Being able to switch on the call logging would help.

Also, this is probably not useful for high volume calls, like multi() etc. So a selective filtering is needed to fine tune what is logged.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4082) Add API call audit trail

Posted by "Lars George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063436#comment-13063436 ] 

Lars George commented on HBASE-4082:
------------------------------------

Ah right, I assumed that is using CPs. But it does not read like it. Will comment over there.

> Add API call audit trail
> ------------------------
>
>                 Key: HBASE-4082
>                 URL: https://issues.apache.org/jira/browse/HBASE-4082
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, regionserver
>            Reporter: Lars George
>            Priority: Minor
>
> It would be very helpful to correlate the log contents with API calls that have been made. This includes calls to split, compact, as well as bulkLoadHFile and so on. This could be stored in a separate log file if wanted, and be disabled by default (unless more want it on than off).
> I could think of an AuditLogger class that is used to write them into a shared log context. It should log all primitive parameters as well as a reasonable amount of those that binary or larger.
> Sure this could be implemented with an Audit coprocessor, but that isn't here yet, and also seems a bit overcomplicating things. BUt I am open for ideas.
> We have it often that we get logs that show some sort of malfunction, but we cannot tell what happened beforehand. Some events can be inferred if you have intrinsic knowledge of the log messages that precede the event. But that is hardcore and not really user-friendly. Being able to switch on the call logging would help.
> Also, this is probably not useful for high volume calls, like multi() etc. So a selective filtering is needed to fine tune what is logged.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HBASE-4082) Add API call audit trail

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Purtell resolved HBASE-4082.
-----------------------------------

    Resolution: Duplicate

Duplicates HBASE-2014. Please comment there Lars.

> Add API call audit trail
> ------------------------
>
>                 Key: HBASE-4082
>                 URL: https://issues.apache.org/jira/browse/HBASE-4082
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, regionserver
>            Reporter: Lars George
>            Priority: Minor
>
> It would be very helpful to correlate the log contents with API calls that have been made. This includes calls to split, compact, as well as bulkLoadHFile and so on. This could be stored in a separate log file if wanted, and be disabled by default (unless more want it on than off).
> I could think of an AuditLogger class that is used to write them into a shared log context. It should log all primitive parameters as well as a reasonable amount of those that binary or larger.
> Sure this could be implemented with an Audit coprocessor, but that isn't here yet, and also seems a bit overcomplicating things. BUt I am open for ideas.
> We have it often that we get logs that show some sort of malfunction, but we cannot tell what happened beforehand. Some events can be inferred if you have intrinsic knowledge of the log messages that precede the event. But that is hardcore and not really user-friendly. Being able to switch on the call logging would help.
> Also, this is probably not useful for high volume calls, like multi() etc. So a selective filtering is needed to fine tune what is logged.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira