Getting Data In

Specifying the path to Splunk for splunkdj

dmcguerty
Explorer

On page:
http://dev.splunk.com/view/SP-CAAAEN2
(Create the musicdashboard app)
you're asked to enter:
splunkdj createapp musicdashboard

(and it says You'll need to provide your Splunk credentials to create the app.)
it prompts you:
Where is splunk installed?

It doesn't explain how you'll even need to answer this. What path? What format? Absolute from C:/?

It doesn't explain how to enter the answer. Is it asking for the full path to splunk.exe?
Doesn't work. Relative path: doesn't work. Fwd slashes, back slashes?...

I'm at a total loss on how to answer the prompt and I'm sure other people that don't work at Splunk are confused, too.

Please, enhance the documentation to be more complete and accurate. This applies to most of the other pages I've read in the splunk documentation.

It will cut the number of questions on this site in HALF.

Think about it.

Happy holidays.
Dave

1 Solution

sciurus
Path Finder

At a guess, it wants the path to "Splunk" as an application, not splunk.exe as a binary, so /opt/splunk/, or c:\program files\splunk.

It's likely that the app is expecting SPLUNK_HOME to be set, so you could try running this (Windows):

C:\>set SPLUNK_HOME=c:\Program Files\Splunk

or on unix, setSplunkEnv will setup all variables:

root@server:~# . /opt/splunk/bin/setSplunkEnv

View solution in original post

sciurus
Path Finder

At a guess, it wants the path to "Splunk" as an application, not splunk.exe as a binary, so /opt/splunk/, or c:\program files\splunk.

It's likely that the app is expecting SPLUNK_HOME to be set, so you could try running this (Windows):

C:\>set SPLUNK_HOME=c:\Program Files\Splunk

or on unix, setSplunkEnv will setup all variables:

root@server:~# . /opt/splunk/bin/setSplunkEnv

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...