Dashboards & Visualizations

Can we create a common search template in a form and then customize the search for different rows in the same form?

VipulGarg19
Engager

I was looking over this article on Splunk Docs.

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormSearchExamples

For the Inverted Flow form search , they have three separate rows querying using the given input. In the search template for all the rows, the part "index=_internal source=*metrics.log Component=metrics group="per_sourcetype_thruput" series="$sourcetypeToken$" |" is common for all of them. This seems like a big overhead on the splunk as it would be useful to have this as the common search for the form and then customize in the individual rows. Right now, the splunk would do this same search three times, which is not efficient.
I tried that for the forms. The splunk is giving an error. It is not able to accept the form which have search templates "globally" and "locally".
My first question is can this be done and if yes, how?It would be helpful if some one can provide an example.
Thanks,

0 Karma
1 Solution

Ayn
Legend

You can use post processing to have one search drive multiple panels in a dashboard or search form. Have a look at the docs explaining the concept: http://docs.splunk.com/Documentation/Splunk/latest/Developer/PostProcess

View solution in original post

0 Karma

Ayn
Legend

You can use post processing to have one search drive multiple panels in a dashboard or search form. Have a look at the docs explaining the concept: http://docs.splunk.com/Documentation/Splunk/latest/Developer/PostProcess

0 Karma

VipulGarg19
Engager

Thanks for the comment. Will this work with the forms also?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...