Getting Data In

app.conf does not honor environment variables

tony_luu
Path Finder

i'd like to embed an env variable in my app label, so i add this to my app.conf:

[ui]
label = My App $SPLUNK_HOME

However, the variable didn't get expanded by Splunk (i got the verbatim label)
Also tried with quotes but made no difference.

Looks like app.conf doesn't like env variables.
Any idea?

abhishekdharga
Engager

@mikaelbje Did u get the $HOSTNAME working in Transforms.conf I am facing the same problem.

0 Karma

lguinn2
Legend

That is true.

mikaelbje
Motivator

It looks like some of Splunk's config files do expand environment variables. Do you know if there's a list? I'm particularly interested in being able to use $HOSTNAME in transforms.conf at an intermediate forwarder to be able to track what intermediate forwarder the event passed through.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...