-
Notifications
You must be signed in to change notification settings - Fork 218
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
Log4j2 logs in json #901
Labels
question
User questions. Neither a bug nor feature request.
Comments
gabriel-suela
added
bug
Something isn't working
untriaged
Issues that have not yet been triaged
labels
Nov 11, 2024
Hi @gabriel-suela. The securityconfig-secret is, as the name implies, only for the securityconfig, so adding log4j properties there will have no effect. |
swoehrl-mw
added
question
User questions. Neither a bug nor feature request.
and removed
bug
Something isn't working
untriaged
Issues that have not yet been triaged
labels
Nov 12, 2024
@swoehrl-mw ty for the information. general:
additionalVolumes:
- name: log4j2-properties
path: /usr/share/opensearch/config/log4j2.properties
subPath: log4j2.properties
configMap:
name: log4j2-properties
restartPods: true configMap: - apiVersion: v1
kind: ConfigMap
metadata:
name: log4j2-properties
data:
log4j2.properties: |-
appender.console.type = Console
appender.console.name = console
appender.console.layout.type = OpenSearchJsonLayout
appender.console.layout.type_name = json_logger
rootLogger.level = info
rootLogger.appenderRef.console.ref = console |
github-project-automation
bot
moved this from 🆕 New
to ✅ Done
in Engineering Effectiveness Board
Nov 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can i change the settings for log4j2.properties? Currently im trying to change in the
securityconfig-secret
:but when i check the log4j2.properties in the container the settings do not change.
The text was updated successfully, but these errors were encountered: