Spread our blog

Splunk Dashboard Customization: Create Multiple Tabs Within A Single Dashboard

Today we will show all of you, another way of customizing the Splunk dashboard. We will create multiple tabs within a dashboard and each and every tab will contain different data or visualization based on our need. By creating tabs you can provide another sight to your dashboard which will give a wonderful enhanced user experience.

Below is the sample dashboard which we will be achieved by our today’s blog,


We will create a dashboard named “Details of All Prod Host”, where we will create two tabs

  1. Cluster Maps” (it will contain all the host information within a cluster map visualization.)
  2. Details Table” (it will contain all the host information within a table visualization.)

Let’s start then.
First of all, we will create a dashboard with all panels.
We have two panels one for the “Cluster Map” tab and the second one for the “Details table” tab.


Now we have one JavaScript and a CSS and will add those stuff in places.

$SPLUNK_HOME$/etc/apps/<app_name>/appserver/static

After adding the JS and CSS file no need to restart Splunk. Use the bump method to load the JS and CSS so that Splunk can understand the changes.


If you want to download the JS and CSS file click below.

tabs.css
tabs.js

Now go to your dashboard, click on Edit and Source.


And do these following changes as shown below.

Line1: within the <dashboard> tag add script=”tabs.js” stylesheet=”tabs.css”
Line3 to Line21: Is responsible to create two tabs as per our requirement.
Line22: within the <row> tag add id=”tab_Map”
Line38: within the <row> tag add id=”tab_Table”

Then Save the dashboard and reload the dashboard.
And that’s it,

You can also know about :  Trigger an alert For ANY Unique/NEW Incoming events or results

Hope you have understood the topic. Go ahead and make your dashboards more interactive in this way.
Happy Splunking!!

What’s your Reaction?
+1
+1
+1
+1
+1
+1
+1

Spread our blog

LEAVE A REPLY

Please enter your comment!
Please enter your name here