Security

Can we access Splunk using a subsite configuration?

mfamd
New Member

Hi,
How can we configure splunk to be accessibla within a subsite, by exampleȘ
https://something.com/subsite/....

We use Nginx fore proxyredirection to that /subsite/. However, Splunk alwayse try to load its resources from the root / directory.

Is there any way to indicate to splunk that all requests should come with an prefix as /subsite/....

Many thanks

0 Karma

harsmarvania57
Ultra Champion

Hi @mfamd,

You can configure web.conf to change root_endpoint

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

So your web.conf configuration will be

[settings]
root_endpoint = /subsite

After that you need to restart splunkweb using $SPLUNK_HOME/bin/splunk restart splunkweb

I hope this helps.

Thanks,
Harshil

Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...