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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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