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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...