Keycloak Events Logging Revised
September 21, 2023
Tags: #keycloak #authentication #events #logging
It’s been now 3 years since I wrote about Keycloak events and how to see them occurring in the log output of the server. As the basic concept of how, or, on which log level they are written to the logger still remains the same, the way it will be configured has been changed completely with the Quarkus distribution.
In my mentioned post, I describe two ways of how to configure the logging.
Meanwhile, I prefer setting the proper log level on the jboss-logging
event listener over reconfiguring the log level for the org.keycloak.events
package logger.
Depending on the way you configure you environment, you have these options:
Using the .conf
configuration file
spi-events-listener-jboss-logging-success-level=info
spi-events-listener-jboss-logging-error-level=warn
Using the command line arguments
--spi-events-listener-jboss-logging-success-level=info
--spi-events-listener-jboss-logging-error-level=warn
Using environment variables
KC_SPI_EVENTS_LISTENER_JBOSS_LOGGING_SUCCESS_LEVEL=info
KC_SPI_EVENTS_LISTENER_JBOSS_LOGGING_ERROR_LEVEL=warn
See also here.
You can read more about Keycloak configuration in the official guide.
Du bist auf der Suche nach Keycloak Beratung, Unterstützung, Workshops oder Trainings?
Nimm Kontakt mit mir auf!« FIDO Passkeys – In Zukunft ohne Passwort (Teil 2) Keycloak - Tuning Database Settings when experiencing Transaction timeouts »