Dashboards & Visualizations

Token values not getting initialized on page reload

sensiva
Loves-to-Learn Everything

Hello,

I am having a problem with the token initialization in my dashboard. Here is a snippet of my dashboard. The problem comes for the token spd_cft_id. It depends on the previous token and hence for the moment i just mapped the previous token value. When i do the changes to the code and save it, it works, but when i open the dashboard in a new page or refresh the page, it does not work. The panel hangs saying waiting for input. I tried to set the tokens in init tags as well, but still the same behavior. Am i missing something ? could you please provide some pointers. Thanks

 

<form theme="dark" refresh="60">
<label>MONITORING</label>
<fieldset submitButton="false" autoRun="true">
<input type="dropdown" token="envspd" searchWhenChanged="true">
<label>Environment</label>
<choice value="r">PROD</choice>
<choice value="i">INDUS</choice>
<choice value="a">ACCEPTANCE</choice>
<choice value="d">DEV</choice>
<default>r</default>
<initialValue>r</initialValue>
<change>
<condition value="d">
<set token="spd_idx">igs</set>
</condition>
<condition value="a">
<set token="spd_idx">idgs</set>
</condition>
<condition value="i">
<set token="spd_idx">idogs</set>
<set token="spd_cft_idx">idinel</set>
<set token="spd_cft_src">dbnel*</set>
<set token="spd_tws_cpu">IA23*</set>
</condition>
<condition value="r">
<set token="spd_idx">idgs</set>
<set token="spd_cft_idx">idl</set>
<set token="spd_cft_src">del*</set>
<set token="spd_tws_cpu">RA2*</set>
</condition>
</change>
</input>
<input type="dropdown" token="instancespd" searchWhenChanged="true">
<label>Instance</label>
<choice value="ple">PLE</choice>
<choice value="tce">TCE</choice>
<choice value="acj">ACJ</choice>
<choice value="core">CORE</choice>
<default>ple</default>
<initialValue>ple</initialValue>
<change>
<condition value="core">
<set token="spd_stype">st_splunklog</set>
</condition>
<condition value="acj">
<set token="spd_stype">st_acj_splunklog</set>
</condition>
<condition value="tce">
<set token="spd_stype">st_ple_splunklog</set>
</condition>
<condition value="ple">
<eval token="spd_cft_id">$envspd$</eval>
<set token="spd_file_id">PE</set>
<set token="spd_in_file_count">5</set>
<set token="spd_stype">st_tce_splunklog</set>
</condition>
</change>
</input>

 

 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...