@InterfaceAudience.Private public class HSAuditLogger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HSAuditLogger.AuditConstants |
| Constructor and Description |
|---|
HSAuditLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
logFailure(String user,
String operation,
String perm,
String target,
String description)
Create a readable and parseable audit log string for a failed event.
|
static void |
logSuccess(String user,
String operation,
String target)
Create a readable and parseable audit log string for a successful event.
|
public static void logSuccess(String user, String operation, String target)
user - User who made the service request.operation - Operation requested by the user.target - The target on which the operation is being performed.
HSAuditLogger uses tabs ('\t') as a key-val
delimiter and hence the value fields should not contains tabs
('\t').public static void logFailure(String user, String operation, String perm, String target, String description)
user - User who made the service request.operation - Operation requested by the user.perm - Target permissions.target - The target on which the operation is being performed.description - Some additional information as to why the operation failed.
HSAuditLogger uses tabs ('\t') as a key-val
delimiter and hence the value fields should not contains tabs
('\t').Copyright © 2008–2023 Apache Software Foundation. All rights reserved.