Dashboards & Visualizations

Can tokens be used in dashboard fieldset?

simpkins1958
Contributor

I would like to use tokens in dashboard fieldset. This XML code below is not working. The two tokens have been defined in JavaScript and are available in other components of the dashboard, just not the fieldset.

  <fieldset submitButton="false">
    <input type="time" searchWhenChanged="true">
      <label>Time: from view in app</label>
      <default>
        <earliest>$default_earliest$</earliest>
        <latest>$default_latest$</latest>
      </default>
    </input>
  </fieldset> 

gcusello
SplunkTrust
SplunkTrust

I tried more times to pass a token as a default to Time Inputs, I think that it isn't possible now!
Sorry.
Giuseppe

0 Karma

simpkins1958
Contributor

Fixed typo, and still not working. The token substitution happens in the HTML section fine.

Here is the url that is created by Splunk when navigating to the dashboard:

http://XXXXXXX-01:8000/en-US/app/dazzler/system_summary?earliest=%24default_earliest%24&latest=%24de...

  <fieldset submitButton="false">
    <input type="time" searchWhenChanged="true">
      <label>Time: from view in app</label>
      <default>
        <earliest>$default_earliest$</earliest>
        <latest>$default_latest$</latest>
      </default>
    </input>
  </fieldset> 
  <row>
    <html>
        <b>Test: $default_earliest$ - $default_latest$ </b>
    </html>  
  </row>
0 Karma

cmerriman
Super Champion
0 Karma

simpkins1958
Contributor

It actually does, I must not have pasted it in correctly.

:8000/en-US/app/dazzler/system_summary?earliest=%24default_earliest%24&latest=%24default_latest%24
0 Karma

cmerriman
Super Champion

this should not be so complicated. they have a doc on this.

http://docs.splunk.com/Documentation/Splunk/6.5.0/Viz/Dynamicdrilldownindashboardsandforms#Dashboard...

Maybe you need to put the link in CDATA?

0 Karma

cmerriman
Super Champion

is earliest misspelled? You have it $default_earlist$ instead of $default_earliest$
if that isn't it, I'll keep noodling.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...