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!
Hi _dave_b,
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.
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
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?
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" />
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.
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' />
Oh.. mydashboard should be replaced by the name (name of the dashboard as seen in the URL).
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