From 3c397e259e9b69bdb33d840df2e6a2ac7301122b Mon Sep 17 00:00:00 2001 From: Maciej Mierzwa Date: Fri, 23 Jun 2023 10:46:17 +0200 Subject: [PATCH] add privileges info Signed-off-by: Maciej Mierzwa --- .../org/opensearch/security/auditlog/impl/AbstractAuditLog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/opensearch/security/auditlog/impl/AbstractAuditLog.java b/src/main/java/org/opensearch/security/auditlog/impl/AbstractAuditLog.java index e14d5b17a9..fe5b01fec7 100644 --- a/src/main/java/org/opensearch/security/auditlog/impl/AbstractAuditLog.java +++ b/src/main/java/org/opensearch/security/auditlog/impl/AbstractAuditLog.java @@ -184,6 +184,7 @@ public void logMissingPrivileges(String privilege, String effectiveUser, RestReq msg.addRemoteAddress(remoteAddress); msg.addRestRequestInfo(request, auditConfigFilter); msg.addEffectiveUser(effectiveUser); + msg.addPrivilege(privilege); save(msg); }