Security

Custom HTTP error page for Splunk Web

roychen
Path Finder

Hi,

Is it possible to configure Splunk Web with a custom HTTP error page? I'd like to display a custom error page in the event of e.g. HTTP 500, or HTTP 503, similar to what Apache can do.

Thanks.

Tags (1)

nekbote
Path Finder

Roychen,

How did you get this resolved?
In need of something similar, on certain navigations we want to route the user to customized error page instead of Splunk out of the box 404 page.

Any suggestions?

0 Karma

khyoung7410
Communicator

Hi ~
I want to possible splunk web custom http error page.
I don't want to 404 error packet sending.
I know error.py directory. ( $SPLUNK_HOME/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/error.py )
But where edit.. I don't know ... ㅡㅡ
Help me plz

0 Karma

iliaselmatani
New Member

Roychen,

That is a static HTML string template to render errors. You can edit the template.
See appserver/mrsparkle/lib/error.py.
Since version 6.0 you can find the file under:
splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/error.py

Greetz, Ilias el Matani

0 Karma

limwesiang
Engager

can you further explain about your situation or environment?

0 Karma

limwesiang
Engager

can you further explain your situation or environment?

0 Karma

roychen
Path Finder

Basically, Apache allows for customizable responses to be defined, and activated in the event of a server detected error or problem.

See: http://httpd.apache.org/docs/2.2/custom-error.html

I know Splunk uses the CherryPy web server, but I have been unable to find any documentation in e.g. web.conf that states whether this functionality exists.

Just want to know if I can customize an error page in the event a user gets a HTTP 503, for example.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...