Hi Everyone,
I have one requirement.
As of now I have put Auto Refresh for my panel for 5 sec.
My requirement is I want to create a checkbox for Auto Refresh which when checked by user will start Auto Refresh for every 5 sec and will close in 5 minutes automatically.
By Default the check box should ne unchecked.
Below is my code:
<form theme="dark">
<label> Process Dashboard Auto Refresh</label>
<fieldset submitButton="true" autoRun="true">
<input type="time" token="field1" searchWhenChanged="true">
<label>Date/Time</label>
<default>
<earliest>-15m</earliest>
<latest>now</latest>
</default>
</input>
<input type="text" token="process_tok1">
<label>Processor Id</label>
<default>*</default>
</input>
<input type="text" token="ckey" searchWhenChanged="true">
<label>Parent Chain</label>
<default></default>
<prefix>parent_chain="*</prefix>
<suffix>*"</suffix>
<initialValue></initialValue>
</input>
<input type="text" token="usr">
<label>User</label>
<default>*</default>
</input>
<input type="checkbox" token="auto">
<label>Auto Refresh</label>
</input>
</fieldset>
<row>
<panel>
<table>
<search>
<query>index=abc sourcetype=xyz source="user.log" $process_tok1$
| rex field=_raw "(?<id>[A_Za-z0-9]{8}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{4}[\-][A_Za-z0-9]{12})"
| join type=outer id [inputlookup parent_chains_e1.csv]|search $ckey$|search $usr$|eval ClickHere=url|rex field=url mode=sed "s/\\/\\//\\//g s/https:/https:\\//g"
| table _time _raw host id parent_chain url</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
<sampleRatio>1</sampleRatio>
<refresh>5s</refresh>
<refreshType>delay</refreshType>
</search>
<option name="count">100</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">cell</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
<drilldown>
<condition field="url">
<link target="_blank">$row.url|n$</link>
</condition>
</drilldown>
</table>
</panel>
</row>
</form>
Can someone guide me how to achieve,
Is that possible to achieve.
hi @aditsss,
You asked a similar question and I answered it. Check: https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-checkbox-For-Auto-Refresh/...
If this reply helps you, an upvote/like would be appreciated.