Dashboards & Visualizations

Where do I find $SPLUNK_HOME to add a custom JavaScript file?

cstarling
Explorer

Hello,

I am using Splunk enterprise 6.3. I am at a point where simple XML is not enough for what I would like to do in Splunk's dashboards. I am thinking about adding custom javascript to the simple XML. I have seen all over the documentation about how to do this, but I can't seem to find the folder where you should put your javascript (I think it is SPLUNK_HOME/etc/apps/<app_name>/appserver/static/). At a higher up level I can't find any $SPLUNK _HOME folder at all. I'm not sure if this a permissions issue or I'm just bad at looking. Any help would be useful!

0 Karma
1 Solution

piebob
Splunk Employee
Splunk Employee

$SPLUNK_HOME is the top-level directory into which you installed Splunk.
this might also be useful to you: https://answers.splunk.com/answers/221838/how-do-i-set-the-splunk-home-location-within-splun.html

View solution in original post

0 Karma

piebob
Splunk Employee
Splunk Employee

$SPLUNK_HOME is the top-level directory into which you installed Splunk.
this might also be useful to you: https://answers.splunk.com/answers/221838/how-do-i-set-the-splunk-home-location-within-splun.html

0 Karma

cstarling
Explorer

Thank you for your reply!

I am new to Splunk so maybe I am super confused and completely wrong on this but the problem is that I am using Splunk enterprise and there is no installation directory. Instead I use a browser with a log in to access Splunk. So I'm still not sure where it would be located

0 Karma

jeffland
SplunkTrust
SplunkTrust

If you're on windows, it's probably C:\Program Files\Splunk.
You could also try and do the following search in splunk:

index=_internal component=Metrics

And try to see if you can find the path mentioned in the field "source" of these events.

0 Karma

Lorenzo1
Path Finder

am using a mac. Pls how do i access $SPLUNK_HOME/var/run directory? Thanxx

0 Karma
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 ...