All Apps and Add-ons

Change start screen for app

gnovak
Builder

Hi,

I've been going through answers.splunk.com and documentation and I still can't seem to find the answer to this question.

I created an app called EmailSummaryReports. After I made the app it appears on the Launcher page under the tab Your Apps.

When I click on the app it goes right to the search page for that app.

I was wondering. Can I modify the app so that when I click on it, it goes to a View i have made for the app instead? Is that information in a file somewhere that I can modify?

I'd like this View to the the default page the app goes to when someone click on it.

Tags (1)
1 Solution

araitz
Splunk Employee
Splunk Employee

You need to alter your app's default.xml:

http://www.splunk.com/base/Documentation/4.2.1/Developer/Step6BuildNavigation#Set_a_default_view

The easiest way to do this is to navigate to:

Manager >> User Interface >> Navigation Menus.  

Click on the 'default' Nav name, then remove default='true' from any entry that it is on. Add it to the view you wish to be the default.

For example:

<nav>
  <view name="dashboard_live" />
  <view name="flashtimeline" />
  <view name="my_cool_view" default='true' />
</nav>

View solution in original post

sahr
Path Finder

Just to add a different scenario towards the answer. And a different way of achieving the same thing.

1) Select the Apps drop down(next to the Splunk logo on top left)
2) Select Manage Apps
3) Locate the app's default view you want to edit and select "view objects"
4) Select "default"

5) This is what my screen looked like. And notice search is my default view.

6) Change to the default dashboard/view you want. I wanted it to change to an app called system_events.

Trick: If you are unsure of the exact name. Keep a second tab open with the dashboard or view you want to use. Then copy the end of the URI to what you want. (ex..below)

https://10.100.200.250:8443/en-US/app/exec_test/System_Events?form.time_range.earliest=%40w0&form.ti...

Use just System_events inside the quotes next to the "default=true". Do not include the other stuff otherwise your page won't render. Hope this helps someone.

0 Karma

araitz
Splunk Employee
Splunk Employee

You need to alter your app's default.xml:

http://www.splunk.com/base/Documentation/4.2.1/Developer/Step6BuildNavigation#Set_a_default_view

The easiest way to do this is to navigate to:

Manager >> User Interface >> Navigation Menus.  

Click on the 'default' Nav name, then remove default='true' from any entry that it is on. Add it to the view you wish to be the default.

For example:

<nav>
  <view name="dashboard_live" />
  <view name="flashtimeline" />
  <view name="my_cool_view" default='true' />
</nav>

View solution in original post

gnovak
Builder

This worked. Great thanks..

0 Karma

araitz
Splunk Employee
Splunk Employee

Updated answer with the correct series of events you need to go through. Don't edit anything in 'default' under most circumstances. Please accept/vote up the answer if it is acceptable.

0 Karma

gnovak
Builder

Well I used the bare bones template when I made the app. I put my files and such in /opt/splunk/etc/app//local/default. There is no NAV directory there so I assume I would have to make one. The instructions say to Create a file named "default.xml" in your app's nav directory: $SPLUNK_HOME/etc/apps//default/data/ui/nav/default.xml. One already exists here. I'll try and edit this and see what happens

0 Karma

gnovak
Builder

btw running splunk 4.1.6

0 Karma

gnovak
Builder
0 Karma

gnovak
Builder

btw i don't want this for just a specific user. I'd like it to be for anyone who accesses the app from the launcher page.

0 Karma
Register for .conf21 Now! Go Vegas or Go Virtual!

How will you .conf21? You decide! Go in-person in Las Vegas, 10/18-10/21, or go online with .conf21 Virtual, 10/19-10/20.