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!

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, ...