Dashboards & Visualizations

Token value refresh in panel

me74fhfd
Path Finder

Hi,  all

I've seen similar use-cases on forum but haven't found any that applies here
So, I've got a panel that lists and compares data with domain whitelist with option
to add it. Idea is to refresh panel values and remove domain from list once it has been 
added to the whitelist. Now, it works in scenario where only one domain is added or 
all domain are added with refreshing page in between but it does not work if I was about to 
click and add domains one by one with no page refresh. Can anyone help? Thanks

<form>
<label>The Test Panel</label>
<fieldset submitButton="false">
<input type="time" token="field1">
<label></label>
<default>
<earliest>-72h@h</earliest>
<latest>now</latest>
</default>
</input>
<input type="dropdown" token="input_white_domain_for_add">
<label>input_white_domain_for_add</label>
<search>
<query>| inputlookup wlist_domain.csv | eval domain="$add_domain$" | dedup domain | fields domain | outputlookup append=t wlist_domain.csv</query>
<earliest>0</earliest>
<latest></latest>
</search>
</input>
<input type="text" token="value1" depends="$hidden$">
<label>value1</label>
<default>rename comment as run</default>
</input>
</fieldset>
<row>
<panel>
<table>
<search>
<query>
| inputlookup domain_list.csv | stats count by domain | sort -count
| search NOT [| inputlookup wlist_domain.csv | dedup domain | table domain]
| eval ADD_TO_WLIST="add_to_whitelist"
| rename domain As Domain
| table Domain count ADD_TO_WLIST
| $value1$</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
<option name="drilldown">cell</option>
<option name="refresh.display">progressbar</option>
<drilldown>
<condition field="ADD_TO_WLIST">
<eval token="add_domain">$row.Domain$</eval>
<set token="value1">rename comment as run1</set>
</condition>
</drilldown>
</table>
</panel>
</row>
</form>

Labels (3)
Tags (3)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...