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!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...