Dashboards & Visualizations

Nav bar collections - xml option for search names not matching a string?

Runals
Motivator

I'd like to create two different top level nav bar drop downs that both contain searches. I know there is the capability to include objects like saved searches that match a string (eg., match="error"). Is there a capability to define searches that don't match a string?

The use case is I'm turning over an app to some users where I will likely be adding additional searches in the future that deal with a specific topic and can use a common naming convention. At the same time I'd like for any searches they create to show up under a different nav bar dropdown w/o them having to conform to a specific naming convention.

Tags (1)
0 Karma
1 Solution

jonuwz
Influencer

Looking in the code it looks like setting source="unclassified" will only pull in views that have not already been added to the menus.

./lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/view.py line 247ish

So setting your defined views 1st, should exclude them from the dynamically created menu

see also the docs

View solution in original post

0 Karma

jonuwz
Influencer

Looking in the code it looks like setting source="unclassified" will only pull in views that have not already been added to the menus.

./lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/view.py line 247ish

So setting your defined views 1st, should exclude them from the dynamically created menu

see also the docs

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...