I have list of some 50 dashboards in dashboard panel.My requirement is to create a separate menu like (Production,operational) each production dashboard and operational dashboard which should have dashboards accordingly.User needs few dashboards in Production so that he dont want to see all the dashboard list which has the dashboards like operational,clone etc. like that another menu called operational which should have dashboards other than Production dashboards.
I tried the below code in default.xml file in navigation menu but it displays in drop down ,
<view source="all" match="Antimalware"/>
</collection>
My expectation is not to show in drop down but a separate page should open for both production and operation when they are selected like dashboard menu which is already available by default in search menu.
Please suggest me way how to do this .
The easiest way is to have two different tabs in your menu is
<nav>
<collection label="Production">
<view name="dashprod1" default="true"/>
<view name="dashprod2"/>
</collection>
<collection label="Operations">
<view name="dashoper1"/>
<view name="dashoper2"/>
</collection>
</nav>
In addition, I don't know if the two groups can access both the dashboards (Production and Operations), if not you can define access rights so the people of one group don't see dashboards of the other one.
I don't like the solution <view source="all" match="Antimalware"/>
because in this way you haven't control on what the user see, I prefer to work just a little more writing every navigation Menu update but I want to show to the user only the dashboards I want.
Bye.
Giuseppe
Easiest way I can think would be with HTML views.
You can create two new views one for grouping Production views and another for grouping Operational views. In each of above two views you can create a single HTML panel with list of all the corresponding views (use HTML tags to format as this should allow you to create table structure similar to what Splunk uses).
You can use HTML anchor tags like <a href="<Your Dashboard 1 URL>">Your Dashboard 1 Name</a>"
Refer to Splunk Simple XML Example app for (1)HTML, (2)Drilldown URL Field Value and (3)Define custom tokens. All three provide a way to link to existing views.
hi niketnilay ,
Thank u.
Whether the normal xml will work with this HTML thing or do we need advanced xml for this ??
Is there any other way than this ??
HTML panel is supported in simple XML also. Refer to Simple XML Examples.
Option 1 above is to use HTML tag which is possible in Simple XML without additional files use HTML anchor tag <a href, as suggested in my answer.
Option 2 and 3 will require Javascript, however, Splunk Simple XML Examples App lists out the required details.
The easiest way is to have two different tabs in your menu is
<nav>
<collection label="Production">
<view name="dashprod1" default="true"/>
<view name="dashprod2"/>
</collection>
<collection label="Operations">
<view name="dashoper1"/>
<view name="dashoper2"/>
</collection>
</nav>
In addition, I don't know if the two groups can access both the dashboards (Production and Operations), if not you can define access rights so the people of one group don't see dashboards of the other one.
I don't like the solution <view source="all" match="Antimalware"/>
because in this way you haven't control on what the user see, I prefer to work just a little more writing every navigation Menu update but I want to show to the user only the dashboards I want.
Bye.
Giuseppe
Thank you Giuseppe for your reply.
While using this , no menu is created next to dashboard menu .I have tried this .
Can you suggest me some other way please.
verify to be used the exact dashboard names and their user permissions, these are the usual problems.
Bye.
Giuseppe
Thank you Giuseppe for your reply.
I have admin privilege. But still i cant view ..
verify dashboards privileges and if it's shared and to who.
to verify the correct dashboard name (to put in the navigation menu) you could open dashboards form and with the mouse right button choose "Copy link address" then copy this address in the navigation menu view name, cutting all from the beginning to the dashboard name.
Thank you Giuseppe
It works now in drop down.But still i need the production dashboards to be listed in diff page and operational in diff page like the default dashboard list.
Is there any idea for this .
you could create an html page to use as a menu page in which insert links to the dashboards of each section and put these pages in your Navigation Menu.
<row>
<panel>
<html>
<h1>Production</h1>
<p>
<font size="2">Production</font>
</p>
<table border="0" cellpadding="10" align="center">
<th>
<tr>
<td align="center">
<a href="dashboard_production1">
<img src="/static/app/yourapp/Icon1.png" style="width:80px;border:0;"/>
</a>
</td>
<td align="center">
<a href="dashboard_production2">
<img src="/static/app/yourapp/Icon2.png" style="width:80px;border:0;"/>
</a>
</td>
</tr>
</th>
</table>
</html>
</panel>
Bye.
Giuseppe