Dashboards & Visualizations

two searchTemplate in one form

abhayneilam
Contributor

Hi,

How Can I run two searchTemplate in a single form

I have a query which gets two variable : $first$ and $second$

Now $first$ is always ABC

but $second$ varies according to the country:

For INDIA: it has 5 values
For AUS : it has 5 values

So, I am clicking ABC and any of the one value of AUS then it is not working, because INDIA has been declared before AUS in the form..

it is not taking values for both INDIA and AUS

Please help

0 Karma

sbochniewicz
Path Finder

Here is a sample based on one of my dashboard forms. I hope this helps. Basically you just use the value of the input token as a variable in the second populating search.

<fieldset submitButton="true">
    <input type="dropdown" token="rmonth1">
      <label>Recent Report Month</label>
      <populatingSearch fieldForValue="report_month" fieldForLabel="report_month">
        <![CDATA[| savedsearch "AWS Bill - Monthly Latest Snapshot" | stats count by report_month]]>
      </populatingSearch>
    </input>
    <input type="dropdown" token="rmonth2">
      <label>Previous Comparison Report Month</label>
      <populatingSearch fieldForValue="report_month" fieldForLabel="report_month">
        <![CDATA[| savedsearch "AWS Bill - Monthly Latest Snapshot" | where report_month<"$rmonth1$" | stats count by report_month]]>
      </populatingSearch>
    </input>
  </fieldset>
0 Karma

hartfoml
Motivator

Thanks @Ayn for standing up for the weekend but it is 2 years plus and I have this same question

I would like to use two form searches on the same dashboard. I tried puting them in seperet row's but that didn't work

I would like to have one form search at the top of the dashboard and another form search at the bottom with different form windows for each of the two 's

Can anyone help me and @abhayneilam with this problem?

If you can please post as an answer so @abhayneilam can review and select as an answer

0 Karma

sbochniewicz
Path Finder
0 Karma

Ayn
Legend

It's saturday, I wouldn't expect many people to be around (in fact, I'm not really sure what I'm doing here either). Patience is a virtue.

0 Karma

abhayneilam
Contributor

Can I expect some prompt answer to my problem ..
Your help would be highly appreciated

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...