Dashboards & Visualizations

Where should I put my JavaScript and CSS files in Splunk Enterprise?

vaibhavvijay9
New Member

Hi All,

Where Should I put the JS files — not able to find appserver and then static folder?

I am not able to find the path, where I should keep my js and css files in Splunk Enterprise.
Please help.

Thanks in advance.

0 Karma
1 Solution

Vijeta
Influencer

In addition to the path given by @harsmarvania57 , you can also upload them directly through splunk web interface given that you have the permissions.
Go to Manage Apps, then go to app name Actions column->Edit properties->Upload Assets , choose file and save.

View solution in original post

Vijeta
Influencer

In addition to the path given by @harsmarvania57 , you can also upload them directly through splunk web interface given that you have the permissions.
Go to Manage Apps, then go to app name Actions column->Edit properties->Upload Assets , choose file and save.

vaibhavvijay9
New Member

Thanks Vijeta, it worked for me.

Regards,
Vaibhav Vijay

0 Karma

dojiepreji
Path Finder

Where can you see all the javascript files you have uploaded?

0 Karma

harsmarvania57
Ultra Champion

Hi,

You need to put custom js and css files in $SPLUNK_HOME/etc/apps/<APP_NAME>/appserver/static directory. If this directory does not exist in your app then you can create it. Please refer documentation https://docs.splunk.com/Documentation/Splunk/7.2.1/AdvancedDev/UseCSS

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...