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