All Apps and Add-ons

Auto running of dashboard in splunk app

bhepi01
New Member

Hi Experts,
I created a small app "Testapp" which contains a small dashboard. Whenever I open my app, I am able to run my dashboard without any errors.

My requirement is, when I open my app "Testapp", my dashboard should be opened automatically and run. Is there any way to do the same?

I modified source through edit source option in User interface » Navigation menus » default as follows

  <view name="search"  />
  <view name="data_models" />
  <view name="reports" />
  <view name="alerts" />
  <view name="dashboards" default='true'/>
</nav>

So whenever I open app, I am landing into Dashboards successfully but my only dashboard in that app is not running automatically until I run it.

Please advice it on the same. Thanks in advnavce.

0 Karma

bhepi01
New Member

Its not working

0 Karma

hardikJsheth
Motivator

Can you share your name of the xml file and the entry that you have made in the default.xml? Also share the location of the file.

0 Karma

bhepi01
New Member

Thanks for answering. Could you give me an example for my dashboard mentioned above?

0 Karma

hardikJsheth
Motivator

Create default.xml file in your app under your_app/default/data/ui/nav/ folder.

Then choose the dashboard that you want to run as default.

eg.

bhepi01
New Member

I downvoted this post because solution did not work for me

0 Karma

hardikJsheth
Motivator

How did you implemented it.

===================
I don't see the name of the dashboard in your question. You can get the view name by clicking on edit source on your dashboard. Put that name in the xml file as follows:

Refer attached image where we have default page as well as collection.

Blockquote

    <view name="summary" default="true"/>
    <collection label="Reports">
    <view name="cmx_top_mac_address" />
            <view name="cmx_device_by_location"/>
    <view name="map_cordinates"/>
            <view name="no_of_updates_per_mac_address"/>
            <view name="no_of_sid_per_devices_over_week"/>
    <view name="top_5_devices_by_duration"/>
    <view name="top_5_devices_by_packets"/>
    <view name="daily_licence_usage_by_cmx"/>
    </collection>

Blockquote

0 Karma

hardikJsheth
Motivator

Also ensure that you create default.xml file in $SPLUNK_HOME/etc/apps/Testapp/default/data/ui/nav/

0 Karma

bhepi01
New Member

Can you continue your example?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...