Spread our blog

Customization Of Navigation Menu I

Hi Everyone !!!
Today we are back with another interesting topic of Splunk, this topic is a bit different than others. Today we will discuss customizing the navigation menu within an app.
Now we have a hell lot option in the Splunk Settings on the top i.e. if you want to go to the Dashboards then Settings>user interface>views>(then search for your dashboard) like this we have different navigation for the alerts and reports etc. But what if you don’t want to navigate that particular path every time, you want those things within a one click. That’s why we have a Navigation Menu. It is not just into Splunk, wherever you visit we will find a navigation menu on the top of that website or application, to make things easy for the end-users.
Now I don’t want to fetch too long, so let’s get to action then.
At first log on into the Splunk with your own credentials.


Then click on the Search and reporting app, we will customize the navigation menu in this app. According to your need you can go to that particular app.


And this is the by-default navigation menu we have in this app.


We have all this option in the menu, by clicking this we can directly go to that particular view. Now what if we want to change this so just follow us step by step.
First let us assume what we want in the navigation menu.

1. Search
2. Reports
3. Alerts
4. Integrity Check of Installed Files
5. Test_Donut_drilldown

Here 4 and 5 is the name of dashboards which are already present.

You can also know about :  LOOKUPS - LOOKUP TABLE FILES ( PART - 1 )


For this lets click on Settings > User interface > Navigation menus


And click on default.


It will open an xml file like this now try to understand the xml file format from the figure below.


Now according to our requirement we can write the xml like this.

<nav search_view="search" color="#5CC05C">
<view name="search" default="true" />
<view name="reports" />
<view name="alerts" /> 
<view name="donut_drilldown" />
<view name="integrity_check_of_installed_files" /> 
</nav>

As you can see in the last two view tags we have give name mentioned dashboard ID’s which we want to see in top, for those IDs click on Settings>user interface>views>(then search for your dashboard) and open it and then copy the dashboard ID from the url.


That’s how you can easily get the dashboard ID view name.
Now save the default.xml and go to the search and reporting app and check it.


Now reload the page.


It’s done right.
NOTE: This is part-1 and we will come back soon with part-2 which will include an extended version of this blog.
I hope you understood this topic on : Customization Of Navigation Menu I

Happy Splunking!!

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

Spread our blog

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here