Dashboards & Visualizations

How to display navigation menus in custom app?

richkind2620
Engager

Hello everyone,

I'm having some trouble displaying navigation menus on my first attempt at creating an app. What I'm trying to do is quite simple, all I want is to be able to put links to each of my dashboards in the navigation bar of the app.

I have created the some dashboards, which are titled:
Admin Account Activity
External Devices
Firewalls
HIGH Criticality Events
Initial Checks
Logon Activity
Logon Types
Process Trees
Programme Installations

I want to display all of these dashboards in the navigation bar.... When I use the following as the default navigation menu xml:

All of the dashboards appear in the navigation bar, all are accessible, and all load correctly when selected but, they appear in a totally random order.

When I try to specifically name each dashboard so as to put them in the order I want using the following xml:

Only links to Logon Types, Firewalls, and Process Trees will appear in the navigation menu. None of the other dashboards are visible.

All permissions are set to global for the dashboards and the panels, they all appear when I use the command.....but I can't understand why some appear and some don't when I try to name them.

Any help would be very much appreciated.

0 Karma
1 Solution

nickhills
Ultra Champion

Your XML looks good.

Splunk will only show Items in the nav menu if it can find a panel in the same application with exactly the same dashboard ID as specified in the XML.

Can you confirm that all the dashboards are in the same app, and are named exactly the same as they appear in /en-GB/manager/[YOUR_APP]/data/ui/views ?

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

View solution in original post

nickhills
Ultra Champion

Your XML looks good.

Splunk will only show Items in the nav menu if it can find a panel in the same application with exactly the same dashboard ID as specified in the XML.

Can you confirm that all the dashboards are in the same app, and are named exactly the same as they appear in /en-GB/manager/[YOUR_APP]/data/ui/views ?

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

richkind2620
Engager

hello nickhillscpl, so I checked as per your advice and all of the dashboards I wanted to use were showing as being in the app I'm using.

I looked in the data/ui/views folder and some of the xml files were indeed named differently. When I originally built some of the dashboards I used a different name e.g. my dashboard 'initial checks' was originally named 'Statistical Overview' so although I edited the name of the dashboard via splunk web, the name of the xml file was the original name.

I've just renamed the Statistical Overview xml file to Initial Checks and it's appeared in the navigation bar. So you've fixed the problem.

Thanks for taking the time to help me with this nickhillscpl, it's very much appreciated.

0 Karma

nickhills
Ultra Champion

You're welcome and good luck. Feel free to upvote too 🙂

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

richkind2620
Engager

thanks nickhillscpl I was just trying to work out how to paste the code back into my question.

so...the code I used to display all of the dashboards was :

<nav search_view="search">
  <view name="search" />
  <view source="all" />
 /nav>

and they all appear....but in a random order

when I name them in the xml as per:

  <view name="search" />
  <view name="initial_checks" />
  <view name="high_criticality_events" />
  <view name="logon_activity" />
  <view name="logon_types" />
  <view name="firewalls" />
  <view name="process_trees" />
  <view name="admin_account_activity" />
  <view name="external devices" />
  <view name="programme_installations" />
  </nav>

only Logon Types, Firewalls, and Process Trees show in the navigation bar, all the others don't appear.

I know I must be missing something simple but, I just can't see what!

0 Karma

richkind2620
Engager

yes, I just copied the actual part of the code where I was naming the dashboards, full xml saved in the app is

 <nav search_view="search">
      <view name="search" />
      <view name="initial_checks" />
      <view name="high_criticality_events" />
      <view name="logon_activity" />
      <view name="logon_types" />
      <view name="firewalls" />
      <view name="process_trees" />
      <view name="admin_account_activity" />
      <view name="external devices" />
      <view name="programme_installations" />
      </nav>
0 Karma

nickhills
Ultra Champion

It might be a copy/paste error, but your second paste is missing the opening <nav search_view="search"> tag

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

nickhills
Ultra Champion

Can you repost your XML using the code tool which looks like 101010 as you can see the content is missing presently.

If my comment helps, please give it a thumbs up!
0 Karma
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...