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 Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...