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
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

_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
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

_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

kaushikens
Observer

I was struck at the same point you were.  I did below and it worked for me.

1. Copy the dashboard Source Code - Go to your Dashboard, Click on edit and select Source from UI and Source and copy the entire code.

2. Create a new view - Go to Settings, Views - Add new - New View - Paste the source code and give it a name ex: testing

3. Now go to Settings -> User Interface -> filter your app -> click on default 

add line

<view name="testing" default='true' />

 

0 Karma

somesoni2
SplunkTrust
SplunkTrust

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
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...