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.
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 ?
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 ?
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.
You're welcome and good luck. Feel free to upvote too 🙂
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!
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>
It might be a copy/paste error, but your second paste is missing the opening <nav search_view="search">
tag
Can you repost your XML using the code tool which looks like 101010
as you can see the content is missing presently.