Splunk Dev

How to add Dashboard Studio dashboard to a Splunk app?

apignata
Explorer

In my Splunk App I would like to add my dashboard (example_dashboard) made in dashboard studio.
I'm having trouble understanding what the default and view xml should be for a Dashboard Studio dashboard
I've tried to reference the following documentation: https://dev.splunk.com/enterprise/docs/developapps/createapps/addnavsplunkapp/#Add-dashboard-links

Should I be adding a json file in the views instead? Or can I reference the dashboard location using xml?

Any help is greatly appreciated. 

data/ui/nav/Default.xml
<nav search_view="search" color="#38b8bf">
<view name="inputs" default="true" />
<view name="configuration"/>
<view name="search" label="Search"/>
<view name="example_dashboard" label="Dashboard"/>
</nav>
ui/views/example_dashboard.xml
<view name="dashboard_token" />
Labels (2)
0 Karma

apignata
Explorer

I solved my issue by going into /Applications/Splunk/etc/apps/search/local/data/ui/views and finding the dashboard I wanted to add.

The dashboard was an xml file, so I copied the contents and pasted into ui/views/example_dashboard.xml

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...