Deployment Architecture

How would someone set Splunk environment variables in Windows

bwooden
Splunk Employee
Splunk Employee

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

bwooden
Splunk Employee
Splunk Employee

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

View solution in original post

bwooden
Splunk Employee
Splunk Employee

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

bwooden
Splunk Employee
Splunk Employee

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.

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...