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

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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...