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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...