File tree 1 file changed +8
-1
lines changed
src/main/java/com/murtll/keycloak/logging/cef
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,17 @@ public String format(AdminEvent e) {
35
35
int eventId = Integer .parseInt (e .getOperationType ().getStableIndex () + "" + e .getResourceType ().ordinal ());
36
36
String eventName = e .getOperationType () + "_" + e .getResourceType ();
37
37
38
+ Map <String , String > details = new HashMap <>();
39
+ details .put ("client_id" , e .getAuthDetails ().getClientId ());
40
+ details .put ("ip_address" , e .getAuthDetails ().getIpAddress ());
41
+ details .put ("realm_id" , e .getAuthDetails ().getRealmId ());
42
+ details .put ("user_id" , e .getAuthDetails ().getUserId ());
43
+ details .put ("resource_path" , e .getResourcePath ());
44
+
38
45
return this .formatGeneric (eventId ,
39
46
eventName ,
40
47
this .getSeverity (eventId ),
41
- new HashMap <>() );
48
+ details );
42
49
}
43
50
44
51
private String getSeverity (int index ) {
You can’t perform that action at this time.
0 commit comments