How to make Login Events into a Log file

Hi All,

I would like to ask, is there a way to get all this Events and log it into a logging file?
image

All events are being logged by default. Error events are logged on level ERROR, all others on level DEBUG.
The default log level configured in the logging subsystem is INFO. That’s why you only see error events in the logs by default.
If you add a logger for everything org.keycloak.events related to DEBUG, the they will appear.

2 Likes

It’s working. Thank you so much sir.

Hi sir another question, what if i run in domain.sh --host-config=host-master.xml.
Upon checking the host-master.xml did not have logging, when I tried to add in, I will get error unexpected element, do you know about this?

Sorry, I don’t have any experience with Wildfly running in domain mode. I always use standalone mode only.