Dashboards & Visualizations

How do I create a base search for prebuilt panels?

DataOrg
Builder

i have a 4 to 5 prebuilt panels in dashboard with same search only filter conditions are different.

How to create a base search for prebuilt panels

markbarber21
Path Finder

I WISH there was a way to create a prebuilt panel and reference its Search ID in additional panels, but I don't believe it is possible.

You can create a report and reference the same report in multiple prebuilt and inlined panels.

0 Karma

niketn
Legend

@premranjithj you can create a pre-built panel with search that you need to re-use for all existing pre-built panels. The new pre-built panel with search can be added to existing dashboard where other existing pre-built panels are present and then the row that contains pre-built panel can be hidden using depends attribute to check against a token which is never set.

For ex: <row depends="$alwaysHidePreBuiltPanelWithBaseSearch$">

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

DataOrg
Builder

@niketnilay . but i am not expecting this behavior to have a hidden panel.. thanks for your reply

0 Karma

niketn
Legend

So the above should work... right?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

markbarber21
Path Finder

Saving a prebuilt panel with a search with an ID works fine. However, I am not able to reference the base search in any other panels. The search does not support a ref.

    <panel ref="base_foobar"></panel>
    <panel>
      <event>
        <title>child panel</title>
        <search  base="foobar_search_id" >
        </search>
      </event>
    </panel>

harishalipaka
Motivator

hi @premranjithj

have a look into this link :

https://answers.splunk.com/answers/544338/howwhere-to-edit-a-prebuilt-panel.html

Thanks
Harish
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...