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
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...