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 Splunk Enterprise 9.2

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

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...