Dashboards & Visualizations

How do I set my app's start view to be the dashboard?

_dave_b
Communicator

Hello, I want to tweak my app so that a dashboard view from the file "MyDashboard.xml" is the default view, and the user won't have to click on "Dashboards->MyDashboard" menu items.

I searched the docs, but they weren't totally clear to me on how to do this.

Thanks for any words of wisdom you can provide!

0 Karma

ngatchasandra
Builder

Hi _dave_b,

  1. Go to *settings->User interface->Navigation menus*and select your app context in dropdown menu.
  2. Click on default (Nav name) to open it and add this line code

Finaly, your default it look like this :

<nav search_view="your_app_name" color="#65A637">
  <view name="MyDasboard" default="true" />
  <view name="..." />
  <view name="..." />
 ...
</nav>

With this, your dashboard will display automatically when you launch your app.

0 Karma

bmacias84
Champion
0 Karma

somesoni2
Revered Legend

This can be done by setting a default view/dashboard for the app. See below link for more details

http://docs.splunk.com/Documentation/Splunk/6.3.3/AdvancedDev/BuildNavigation#Set_a_default_view

0 Karma

_dave_b
Communicator

Ah, those are the docs that confuse me. They list some example xml like
< nav >
< collection label="Ponies" >
< view name="mydashboard" />
< collection >

Yet, in my Splunk-generated xml files, there is no mention of any collection tags. So I am confused. What is this collection tag for and what does it do?

0 Karma

somesoni2
Revered Legend

The collection tags are used to create sub menus within each menu items, so just ignore that. Have your dashboard that you want to show on app load, added as < view name="mydashboard" default="true" />

0 Karma

_dave_b
Communicator

I added a line that looks like this:

< view name="mydashboard" default='true' />
This gets me closer, but only as far as showing the list of dashboards. It seems like Splunk doesn't recognize "mydashboard" as a view, like it does with "search" or "dashboards". I don't want the user to see the list, I want the user to see the dashboard instantly. I don't want them to go through the trouble of choosing the dashboard.

0 Karma

somesoni2
Revered Legend

Oh.. mydashboard should be replaced by the name (name of the dashboard as seen in the URL).

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Create a new app, place your dashboard in that app

Go to settings>User Control, select the user you want, then go to the second drop down where it says 'Default App' and select that app you just made

0 Karma
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!