Skip to content

Commit

Permalink
Merge pull request #4074 from atlanhq/ns/fix/log-attr
Browse files Browse the repository at this point in the history
PLTS-51 | Add full log in body attr and fix resource attr in auth audit
  • Loading branch information
krsoninikhil authored Feb 10, 2025
2 parents a0154b0 + 3a2b59c commit 72e6e57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void recordLogAttributes(AuditEventBase eventBase) {
MDC.put(AUTH_AUDIT_ACTION, event.getAction());
MDC.put(AUTH_AUDIT_ENTITY_GUID, event.getEntityGuid());
MDC.put(AUTH_AUDIT_POLICY_ID, event.getPolicyId());
MDC.put(AUTH_AUDIT_RESOURCE, event.getResourceType());
MDC.put(AUTH_AUDIT_RESOURCE, event.getResourcePath());
MDC.put(AUTH_AUDIT_RESULT, String.valueOf(event.getAccessResult()));
MDC.put(AUTH_AUDIT_CLIENT_IP, event.getClientIP());
MDC.put(AUTH_AUDIT_AGENT, event.getAgentId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static void audit(AuditLog auditLog) {
MDC.put("requestUrl", auditLog.requestUrl);
MDC.put("httpStatus", String.valueOf(auditLog.httpStatus));
MDC.put("timeTaken", String.valueOf(auditLog.timeTaken));
AUDIT_LOG.info("Capturing audit log");
AUDIT_LOG.info("ATLAS_AUDIT - {} {} {} {}", auditLog.requestMethod, auditLog.requestUrl, auditLog.httpStatus, auditLog.timeTaken);
}
}

Expand Down

0 comments on commit 72e6e57

Please sign in to comment.