Getting Data In

Why am I getting 404 on static files after having define root_endpoint in web.conf?

nverducou
New Member

Hello

I've defined root_endpoint = /splunk in web.conf file. But now I'm getting 404 on /splunk/en-US/static/* files. What did I do wrong?

Regards

Nicolas

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nverducou,

why did you defined the root_endpoint?

as you can read in https://docs.splunk.com/Documentation/ITSI/4.12.0/Configure/web.conf 

root_endpoint = <URI_prefix_string>
* Defines the root URI path on which the appserver will listen
* For example, if you want to proxy the splunk UI at http://splunk:8000/splunkui,
  then set root_endpoint = /splunkui
* Default: /

 So why did you defined it? usually it's used by default.

Ciao.

Giuseppe

0 Karma

nverducou
New Member

Because Splunk will be part of a set of components that are identified by their context path. 

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nverducou,

it isn't so clear for me whay you did this, but anyway, you have to add "/splunk" to the path of each object of all your apps.

In other words, if you want to add an image to a dashboard, instead of 

/static/app/<your_app>/<your_image>

you have to add

/splunk/static/app/<your_app>/<your_image>

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

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

Introducing the Splunk Community Dashboard Challenge!

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