Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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
Highlighted

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

SplunkTrust
SplunkTrust

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
Highlighted

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

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
Highlighted

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

SplunkTrust
SplunkTrust

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
Highlighted

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

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
Highlighted

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

SplunkTrust
SplunkTrust

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

0 Karma
Highlighted

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

Champion
0 Karma
Highlighted

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

Hi daveb,

  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