- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
app.conf does not honor environment variables
tony_luu
Path Finder
05-16-2014
01:11 PM
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?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
abhishekdharga
Engager
09-13-2018
02:50 PM
@mikaelbje Did u get the $HOSTNAME working in Transforms.conf I am facing the same problem.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![lguinn2 lguinn2](https://community.splunk.com/legacyfs/online/avatars/109473.jpg)
lguinn2
Legend
05-16-2014
02:53 PM
That is true.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![mikaelbje mikaelbje](https://community.splunk.com/legacyfs/online/avatars/145152.jpg)
mikaelbje
Motivator
05-29-2015
06:02 AM
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.
![](/skins/images/396DDBEEAC295EB5FEC41FF128E8AC0A/responsive_peak/images/icon_anonymous_message.png)