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
Champion

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. 

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...