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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...