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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...