Replies: 1 comment 8 replies
-
One solution would be to use the system properties lookup in Log4j (sys:HOSTNAME) and ensure that the HOSTNAME variable is correctly passed as a system property |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm working on log4j configuration that will send broker logs through SocketAppender to different pod. I want to set application appender's property to $HOSTNAME. I was trying to do this by setting additional java property using kafka.jvmOptions.javaSystemProperties and kafka.template.kafkaContainer.env:
Both of ways doesn't work and in the broker pod I can see:
It seems that expanding environment variables doesn't work.
Is there any other way to pass hostname to log4j configuration?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions