Dashboards & Visualizations

Passing parameter to saved search in forms (simple xml)

vaibhavagg2006
Communicator

Hi,
I want to pass parameter value from drop down to saved search in simple xml.

I am using @go?s to call savedsearch. Is there any way out to pass parameter value.

Thanks

0 Karma

krithikaVijay
New Member

I am trying to do something similar. Any help on trying to do it via simple XML would be appreciated.

0 Karma

vaibhavagg2006
Communicator

yes you are right. I want to call a saved search on click of a link and pass a parameter(value from dropdown). I guess i have to switch to advanced xml.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

Correct, form input tokens cannot be passed into saved searches (using "searchName").

The best way to include form input tokens within searches in simple xml is to use either "searchString" or "searchTemplate". In other words, you will need to convert it to an inline search.

sideview
SplunkTrust
SplunkTrust

If you're willing to switch the the advanced XML I'm sure it can be done there and I can help. It sounds like you want your drilldown to send both the name of a savedsearch and also the name of one or more other params, with the savedsearch name being used in the target view to load/run that savedsearch, and also with the additional params being used in searches too. Is that correct?

0 Karma

vaibhavagg2006
Communicator

Couldnt find solution to my problem in this app 😞

0 Karma

Ayn
Legend
0 Karma

vaibhavagg2006
Communicator

No, but i tried to find it in docs but couldnt find it.

0 Karma

Ayn
Legend

Did you download and study the Dashboard examples app?

0 Karma
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...