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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...