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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...