Hello,
I am running Keycloak 20.2.2 and want to log to a file. When I start Keycloak from a shell prompt as follows, log lines are generated as expected. However, when I start Keycloak via a systemd unit no log entries are written to the file.
/opt/keycloak/bin/kc.sh start --log-level=DEBUG --log=console,file --https-key-store-file=/opt/keycloak/MRK.jks
unit file:
[Unit]
Description=Keycloak Server
After=syslog.target network.target mysql.service
Before=httpd.service
[Service]
User=keycloak
Group=keycloak
SuccessExitStatus=0 143
ExecStart=!/opt/keycloak/bin/kc.sh start --log-level=DEBUG --log=console,file --https-key-store-file=/opt/keycloak/MRK.jks
[Install]
WantedBy=multi-user.target
I’ve tried using the --log-file option as well.
Any/all ideas appreciated.