Get user events for security monitoring

Hello,

Has anyone worked on getting the user events to an external system/file for security monitoring? If so, can you help me with it ? My objective is to get the user events like logouts/logins etc to a file so it can then be read by our software running in the system.

Thanks for the help!

  1. There is a built in event listener that logs events to the log file. It can be enabled in the “Realm Settings → Events” tab by adding jboss-logging to the event listeners.
  2. You can also implement your own EventListenerProvider to capture and do whatever you want with the events. Docs and examples here:
  3. I’ve got a few extensions for externalizing events via HTTP and webhooks. Repo here: