Dashboards & Visualizations

navigation menu consolidation

aaronkorn
Splunk Employee
Splunk Employee

Hello,

What is the best way to edit the navigation menu dropdowns to contain sub-elements. For example we would want to group certain searches and dashboards under particular categories like this under Errors: alt text

0 Karma
1 Solution

okrabbe_splunk
Splunk Employee
Splunk Employee

You would want to edit a navigation.

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

Just to give you an idea, the way they were able to get the views with "error" to appear is by adding a collection with a "match=error". This then matches views that have error in the name.

<collection label="Saved Searches">
<saved name="Daily indexing volume by server" view="charting" />
  <collection label="Errors">
    <saved source="unclassified" match="error" />
  </collection>
<saved source="unclassified" />
</collection>

View solution in original post

okrabbe_splunk
Splunk Employee
Splunk Employee

You would want to edit a navigation.

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

Just to give you an idea, the way they were able to get the views with "error" to appear is by adding a collection with a "match=error". This then matches views that have error in the name.

<collection label="Saved Searches">
<saved name="Daily indexing volume by server" view="charting" />
  <collection label="Errors">
    <saved source="unclassified" match="error" />
  </collection>
<saved source="unclassified" />
</collection>

okrabbe_splunk
Splunk Employee
Splunk Employee

Unfortunately there is no easy way to do this outside of having a naming convention for your views.

See this answer:
http://splunk-base.splunk.com/answers/12744/navigation-menu-xml-match-help

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

This worked. Thanks! How would you specify multiple match strings?

0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

Ah, so I just realized that the matching appears to happen in order. So for example, unless you move the "view source=unclassified" down below the Cerner match you will still see them once at the top and once in the matched group.

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

Yep. Any other ideas?

0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

The code looks good...I am surprised that is not working. You have done a restart and clear out your browser cache?

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

Yes I have a view called Cerner RTMS and it is being grouped under the matched collection but is still an option under the main drop-down







Manage Views

Create dashboard...

0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

My past experience has been when it matches it should show up only under the matched collection. Are you seeing something different?

0 Karma

aaronkorn
Splunk Employee
Splunk Employee

Excellent! Thank you!!! One question though.. How do I remove the original view from the list once it has been added to a grouping?

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...