Dashboards & Visualizations

How do I set the navigation from the "Dashboards" option to all dashboards below that in my custom navigation menu?

athorat
Communicator

Referencing the article below, I modified the default file.

So now I have a navigation from Ponies Menu to Dashboards Option.
Now how do I set the navigation from Dashboards option to All the dashboards under it.
it should be ,
Ponies>>Dashboards >>
Dashboard A
Dashboard B
Dashboard C

Also how the Navigation Straight from Dashboards to all the underlying Dashboards.

<nav search_view="search" color="#65A637">
<view name="search" />
<view name="data_models" />
<view name="reports" default='true' />
<view name="alerts" />

<collection label="Ponies">
<view name="dashboards" />
</collection>
</nav>

http://docs.splunk.com/Documentation/Splunk/6.2.3/AdvancedDev/BuildNavigation

0 Karma
1 Solution

rsennett_splunk
Splunk Employee
Splunk Employee

Here ware two way stop do what you're looking for:

The first menu "Ponies" specifies your dashboards individually
The second "Alt Ponies" specifies all dashboards (even if they're already listed) but filtered by the name

  • keep in mind, my dashboards are actually called dashboard_a , dashboard_b and dashboards_c
  • You will have to match your own pattern, or use the one that just brings them all back if that's what you want(don't use match=).

I also normally leave the default Dashboards menu which points to the whole unclassified list because it has the "new" button. But that's up to you...

 <nav search_view="search" color="#65A637">
      <view name="search" default='true' />
      <view name="data_models" />
      <view name="reports" />
      <view name="alerts" />
      <view name="dashboards" />
      <collection label="Ponies">
        <collection label="Dashbaords">
            <view name="dashboard_a" />
            <view name="dashboard_b" />
            <view name="dashboard_c" />
        </collection>
      </collection>
      <collection label="Alt_Ponies">
        <collection label="Dashboards">
          <view source="all" match="dashboard_" />
      </collection> 
        </collection> 
    </nav> 
With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

View solution in original post

0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

Here ware two way stop do what you're looking for:

The first menu "Ponies" specifies your dashboards individually
The second "Alt Ponies" specifies all dashboards (even if they're already listed) but filtered by the name

  • keep in mind, my dashboards are actually called dashboard_a , dashboard_b and dashboards_c
  • You will have to match your own pattern, or use the one that just brings them all back if that's what you want(don't use match=).

I also normally leave the default Dashboards menu which points to the whole unclassified list because it has the "new" button. But that's up to you...

 <nav search_view="search" color="#65A637">
      <view name="search" default='true' />
      <view name="data_models" />
      <view name="reports" />
      <view name="alerts" />
      <view name="dashboards" />
      <collection label="Ponies">
        <collection label="Dashbaords">
            <view name="dashboard_a" />
            <view name="dashboard_b" />
            <view name="dashboard_c" />
        </collection>
      </collection>
      <collection label="Alt_Ponies">
        <collection label="Dashboards">
          <view source="all" match="dashboard_" />
      </collection> 
        </collection> 
    </nav> 
With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma

athorat
Communicator

XML Content

<nav search_view="search" color="#65A637">
<view name="search" />
<view name="data_models" />
<view name="reports" default='true' />
<view name="alerts" />
<collection label="Ponies">
<collection label="Dashboards">
<view source="all" match="dashboard_" />
</collection> 
</collection> 

    </nav>
0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

that will work if your dashboards are actually called "dashboard_a", etc... don't use the match if you want everything.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

and please don't create a new answer, when really... you want to comment on an answer. use COMMENTS.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma

ppablo
Retired

Converted 🙂

Hi @athorat

As @rsennett_splunk said, please be sure that when responding to someone's answer, click on "Add comment" directly below their answer or, if responding to someone's comment, type in the "Add your comment..." box directly below their comment. You typed your responses in the "Enter your answer here..." box at the very bottom of the page which, instead, posts a brand new answer each time. This will help with a clean continuous flow of the conversation. I already converted your "answers" to comments, so just something to keep in mind from here on out. Thanks and happy Splunking!

0 Karma

athorat
Communicator

@rsennett_splunk
@ppablo_splunk
Yes Got it now. Seems to be a big issue by answering using the answers text box.
Well if you see/click the link which you get in an email when someone answers your question, the fist thing which you see is, "Your Answer"
Just thinking if the Answers which a end user post might get any points? and who needs the point to solve a issues? Not sure if I do. Just a thought.

0 Karma

athorat
Communicator

Okay, I see.
The comments is just for one line in width and never paid attention to that.
As far as the issue is resolved, All Good.
Thanks for looking into this

0 Karma

athorat
Communicator

Thanks for looking into this.

So if I understand correctly this should list all the available dashboards under the dashboard menu, like Alt_Ponies>>Dashboards>> List of all the dashboards.

So doing this, whats happening is, Dashboards menu disappears as I think it searches for,
It does not even show the Ponies>>Dashboards options

Just Search,data_models,reports and alerts

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...