- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bwooden

Splunk Employee
08-01-2014
06:19 AM
How would someone set Splunk environment variables in Windows? Similar to the Linux command:
source /opt/splunk/bin/setSplunkEnv
...So they would get %SPLUNK_HOME%
, %SPLUNK_DB%
, etc?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bwooden

Splunk Employee
08-01-2014
06:21 AM
Splunk has several command line tools. One of those is useful for this purpose. splunk envvars
Create a batch file using splunk envvars and then run that batch file:
splunk envvars > setSplunkEnv.bat
setSplunkEnv.bat
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bwooden

Splunk Employee
08-01-2014
06:21 AM
Splunk has several command line tools. One of those is useful for this purpose. splunk envvars
Create a batch file using splunk envvars and then run that batch file:
splunk envvars > setSplunkEnv.bat
setSplunkEnv.bat
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bwooden

Splunk Employee
08-01-2014
06:35 AM
NB This is just a convenience. It is useful for setting the environment variables Splunk uses into your local shell. It is not needed for running Splunk.
