Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom field "app=keycloak-config-cli" to JSON LogstashEncoder output #942

Closed
HenningWaack opened this issue Nov 7, 2023 · 0 comments · Fixed by #943
Closed

Add custom field "app=keycloak-config-cli" to JSON LogstashEncoder output #942

HenningWaack opened this issue Nov 7, 2023 · 0 comments · Fixed by #943

Comments

@HenningWaack
Copy link
Contributor

Problem Statement

In order to simplify finding logs from Keycloak Config CLI in a log aggregator like Kibana, it would be beneficial to mark every log entry with a custom field which identifies the CLI as its source.

Proposed Solution

  • Add a custom field to the src/main/resources/logback-spring.xml file with name="app" and value="keycloak-config-cli"

Environment

  • Keycloak Version: all
  • keycloak-config-cli Version: all
  • Java Version: all

Additional information

No response

Acceptance Criteria

  • The custom field "app=keycloak-config-cli" is added to each log message when using the "json-log" spring profile.
HenningWaack added a commit to HenningWaack/keycloak-config-cli that referenced this issue Nov 7, 2023
Add the customField "app" with value "keycloak-config-cli" to each JSON log message. Fixes adorsys#942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant