Dashboards & Visualizations

How to fix Splunk nav bar?

patricianaguit
Explorer

I changed my localhost and when i created a new app, my app's nav bar turned into this format and the color is black instead of the green one?

Is there a way to fix this?

alt text

0 Karma
1 Solution

Yunagi
Communicator

It looks like your app does not have a navigation bar configured.
Have a look at this link: Add navigation to a Splunk app

Basically, to create your own navigation bar, you need to create the file etc/apps/myapp/default/data/ui/nav/default.xml. (Replace "myapp" with the name of your app.) The contents of this file should be something like this:

<nav search_view="search" color="#65A637">
    <view name="search" default="true" />
    <view name="data_models" />
    <view name="reports" />
    <view name="alerts" />
    <view name="dashboards" />
</nav>

Restart Splunk after creating this file. Now you should have a navigation menu.

Later you can edit the navigation menu directly via Settings/User interface/Navigation menus.

View solution in original post

0 Karma

nickhills
Ultra Champion

The top of the nav bar being black is quite normal - Do you mean the search bar has gone black? You can change this in your user preferences.

If my comment helps, please give it a thumbs up!
0 Karma

Yunagi
Communicator

It looks like your app does not have a navigation bar configured.
Have a look at this link: Add navigation to a Splunk app

Basically, to create your own navigation bar, you need to create the file etc/apps/myapp/default/data/ui/nav/default.xml. (Replace "myapp" with the name of your app.) The contents of this file should be something like this:

<nav search_view="search" color="#65A637">
    <view name="search" default="true" />
    <view name="data_models" />
    <view name="reports" />
    <view name="alerts" />
    <view name="dashboards" />
</nav>

Restart Splunk after creating this file. Now you should have a navigation menu.

Later you can edit the navigation menu directly via Settings/User interface/Navigation menus.

0 Karma

patricianaguit
Explorer

Thank you 🙂 this helped me solve my problem

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi @patricianaguit ,
What changes you did on you localhost?

0 Karma

patricianaguit
Explorer

Thank you 🙂 already fixed this issue!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...