Skip to content

Commit

Permalink
feat: enable access logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Oct 31, 2024
1 parent a56bf8b commit 884e8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-image-rhbk-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create and publish Keycloak Docker image - Dev
on:
push:
branches:
- 'feature/quarkus'
- 'SSOTEAM-1981'

env:
GITHUB_REGISTRY: ghcr.io
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
with:
context: docker/keycloak
push: true
tags: ${{ env.GITHUB_REGISTRY }}/${{env.IMAGE_NAME}}:dev-rhbk-24
tags: ${{ env.GITHUB_REGISTRY }}/${{env.IMAGE_NAME}}:dev-nk
file: docker/keycloak/Dockerfile-24
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
Expand Down
4 changes: 4 additions & 0 deletions docker/keycloak/configuration/24/quarkus.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
quarkus.http.access-log.enabled=true
quarkus.pattern.json={ "client":"%{REMOTE_HOST}", "method": "%{METHOD}", "request_url": %{REQUEST_URL}, "status":"%{RESPONSE_CODE}", "duration":"%{RESPONSE_TIME}", "bytes":"%{BYTES_SENT}" }
quarkus.http.access-log.pattern=${quarkus.pattern.json}
quarkus.http.record-request-start-time=true
quarkus.log.console.json.exception-output-type=formatted
quarkus.log.console.json.key-overrides=timestamp=@timestamp
quarkus.log.console.json.additional-field."@version".value=1
Expand Down

0 comments on commit 884e8ff

Please sign in to comment.