Skip to content

Commit

Permalink
CSCTTV-3639 Keycloak log configuration (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkikos authored Dec 14, 2023
1 parent 8804a9c commit ffb502a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion keycloak/openshift/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ ENV KC_HOSTNAME_STRICT=false
ENV KC_HOSTNAME_STRICT_HTTPS=false
ENV KC_PROXY=edge
ENV HTTP_ADDRESS_FORWARDING=true
# Environment variable KC_LOG_GELF_LEVEL must be set to 'debug' in order to get Keycloak user events
ENV KC_LOG_GELF_LEVEL=debug

# Start the container in production mode.
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--optimized"]
# Configure Keycloak log levels
# - Set INFO as default
# - Show Keycloak events in log. Included events are configured in Keycloak user interface. Log level must be DEBUG.
# - org.keycloak.events:DEBUG
# - To reduce logging, set org.keycloak subcategories:
# - org.keycloak.events.jpa:ERROR
# - org.keycloak.broker:ERROR
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--optimized", "--log-level=\"INFO,org.keycloak.events:DEBUG,org.keycloak.events.jpa:ERROR,org.keycloak.broker:ERROR\""]

0 comments on commit ffb502a

Please sign in to comment.