Dashboards & Visualizations

Is there a way to set an html page as the Home Page default for Splunk?

katelynengel
Explorer

I know that the default Splunk settings do not allow you to set an html page as the Home Page default. I was wondering if there is a way around this as our Home Pages are html.

0 Karma

jchampagne_splu
Splunk Employee
Splunk Employee

Yes, you’re able to replace the default homepage for your app with an HTML page. You just need to create an HTML folder in one of the following places:

  $SPLUNK_HOME/etc/<app>/default/data/ui/html
  $SPLUNK_HOME/etc/<app>/local/data/ui/html

Create your HTML dashboard and place it in the HTML folder you created above. Keep in mind that your HTML page will need to include all of the navigation and toolbars because you’ll be replacing the entire Splunk UI. A good way to get started with an HTML dashboard would be to create a simple XML dashboard and convert it to HTML and then make any further changes you need. You can convert any simple XML dashboard to HTML by opening the dashboard, clicking Edit > Convert to HTML

Next, edit the default.xml file in the nav folder to reference the name of your HTML page (without the extension). To make that page the default, just add default=“true” to the line. You'll want to make sure that a simple XML dashboard with the same name as your HTML dashboard does not exist.

Example:

<nav>
  <collection label="Overview">
    <view name="cumulative_overview" default="true"/>
    <view name="host_overview" />
  </collection>

timpacl
Path Finder

I assume you meant the path to be $SPLUNK_HOME/etc/apps//local/data/ui/html

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...