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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...