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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...