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!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...