Dashboards & Visualizations

Default Token Values in Dashboard Studio

madhav_dholakia
Contributor

Hello,

I am using multiple tokens on a dashboard created in Dashboard Studio and have added default values for the same in json source.

When I save and reload the dashboard, these default values for tokens are removed and table viz (using these tokens) is showing as blank

Can you please suggest how can I fix this?

Thank you.

 

"defaults": {

         "dataSources": {

             "ds.search": {

                 "options": {

                     "queryParameters": {}

                 }

             }

         },

         "tokens": {

             "default": {

                 "tokStatus": {

                     "value": "Status=\"*\""

                 },

                 "tokPlannedStartDt": {

                     "value": "LIKE(isPlannedStartDtPassed,\"%\")"

                 },

                 "tokPlannedEndDt": {

                     "value": "LIKE(isPlannedEndDtPassed,\"%\")"

                 }

             }

         }

     }

Labels (2)
0 Karma

tscroggins
Influencer

Hi @madhav_dholakia,

Can you provide more context for the defaults object and a small sample dashboard that doesn't save correctly? Is defaults defined at the top level of the dashboard? I.e.:

{
  "visualizations": {
    ...
  },
  "dataSources": {
    ...
  },
  "defaults": {
    ...
  },
  ...
}

 

0 Karma

madhav_dholakia
Contributor

Hi @tscroggins - thanks for the pointer - I removed datasources { ... } from this defaults section and kept only tokens { ... } - and it worked. 

Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...