Skip to content

Unable to access enviromment variable in SplunkHttp Tag #277

@vasandharaj

Description

@vasandharaj

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 ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions