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

Unable to access enviromment variable in SplunkHttp Tag #277

Open
vasandharaj opened this issue Sep 26, 2023 · 0 comments
Open

Unable to access enviromment variable in SplunkHttp Tag #277

vasandharaj opened this issue Sep 26, 2023 · 0 comments

Comments

@vasandharaj
Copy link

Hello All,

I am using the spring boot with log4j and splunk HEC for log forwarding. In my log4j-spring.xml file i have below configuration



the PodName and sourceName are present in the application.properties but in the splunk the names are not taken from the application.properties instead it has the value of ${podName} and ${sourceName} as it is.

Will the splunk HEC support the environment variable in log4j fle ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant