Need to Log Events in Keycloak for my admin portal activity

I have integrated keycloak in my admin portal using keycloak.js SDK and now I want to track each user activity and log it in keyclock

Example

  1. If user deleted sometime I want to log event in keycloak
  2. If user update something I want to log event in keycloak

My website is in Next js React

You can create a custom event and add it to the list of events in the realm settings

Ok @tania, but how keycloak will know I have fire that event, Do we have any rest endpoint for the same ?

Keycloak is not an event store for your application.
Keycloak just emits events for its own operations.

1 Like

Thank you for the response

Someone in a conference, using keycloak, used " Axon Framework" (https://www.baeldung.com/axon-cqrs-event-sourcing). Maybe you can check this out