How can i enable event loggin for User and Admin events like Login, Create, Update etc in Helm Chart of Keycloak

I am using Helm Chart file to run Keycloak in Kubernetes. I have updated my values.yaml file with following Values:

extraEnvVars:

  • name: KC_LOG_LEVEL
    value: “DEBUG”
  • name: KEYCLOAK_LOGLEVEL
    value: “DEBUG”
  • name: ROOT_LOGLEVEL
    value: “DEBUG”
  • name: KEYCLOAK_EVENTS_LOGGER
    value: “DEBUG”

I am only able to get Login type events. Also, i am getting lot of DB events that i dont want i.e when i update a user from Keycloak admin console i get a lot of queries data and pipeline that is not useful for me. Please help me out on this one.

I wrote about it once:

1 Like

thanks alot for you quick reply @dasniko . Should i use these attributes in my helm chart under the extraEnvVars?

KC_SPI_EVENTS_LISTENER_JBOSS_LOGGING_SUCCESS_LEVEL=info
KC_SPI_EVENTS_LISTENER_JBOSS_LOGGING_ERROR_LEVEL=warn

These are environment variables. You should know where to configure environment variables in your environment.

1 Like

Thanks alot @dasniko for help. logs are being registered against correct events now.

1 Like