Dashboard Studio: Token Eval and Conditional Panel Visibility

Splunk Cloud Platform 10.1.2507 includes some of our most anticipated features: conditional panel visibility, token eval, support for existing custom visualizations, and a natively supported Timeline visualization. If you have FOMO from not attending .conf25, then keep reading to see these new features in action from our .conf25 demo dashboard!

Conditional Panel Visibility

In Splunk Cloud Platform 9.0.2303, we released the ability to hide panels in Dashboard Studio when there's no data to be shown. This was the most common use case we heard from customers using conditional show/hide in Classic dashboards. Starting in Splunk Cloud Platform 10.1.2507, you can now construct more complex scenarios to determine panel visibility.

For example, in this dashboard from our .conf25 workshop, Dashboard Studio for Experts and Advanced Users, users can choose what data they want to see and whether they want to view the KPI metric or historical trend.

You can specify multiple conditions to determine panel visibility in the UI. In addition to multiple conditions, you can specify nested conditions, and whether conditions should be joined with AND or OR.

Once you've created your condition, you can associate one or multiple conditions to an object under the Configuration panel's Visibility section. Next to each condition is an eye icon. A clear eye means "show" and an eye with a strikethrough means "hide" when the condition is met.

When there are multiple conditions, they are joined by "OR" by default - as in, visibility may change when any of these conditions are met. You can change this behavior to require all conditions to be met in source. If there are both show and hide conditions, and they are both 'true', the panel will be hidden.

Token Eval

Token eval allows you to create an expression to set a token's value. It is similar to a condition, except that a condition always evaluates to true or false, whereas an eval expression can evaluate to true/false, a numeric, a string, or an array.

In our .conf25 workshop example, we have a button to toggle between viewing KPI metrics or historical trends. The button label changes depending on what is being shown. If the dashboard is currently showing the KPI metrics, the button label is "Show trends". Once clicked, and the dashboard switches to showing historical trends, the button label updates to "Show metrics".

Currently, token eval expressions need to be defined in source. There is a new stanza called "expressions" where you will find both your conditions and token eval expressions. Here's an example:

   "expressions": {
       "conditions": {
           "condition_MNC0mRhK": {
               "name": "show trends",
               "value": "$showTrend$ = \"true\""
           },
           "condition_W6MKHKFw": {
               "name": "show metrics",
               "value": "$showTrend$ = \"false\""
           }
       },
       "eval": {
           "expr_1": {
               "name": "toggleTrend",
               "value": "$showTrend$ = 'true' ? 'false' : 'true'"
           },
           "expr_2": {
               "name": "trendBtnLabel",
               "value": "$showTrend$ = 'true' ? 'Show metrics' : 'Show trends'"
           }
       }
   }

For our button example, we created two expressions: one to evaluate the current state (showing trends or showing metrics) and one to evaluate the button label:

The button label is then referenced using the syntax $eval:trendBtnLabel$

As you can see from these examples, the combination of token eval and conditional show/hide enable you to create complex and dynamic dashboards in Dashboard Studio.

Support for Existing Custom Visualizations

You may have use cases that require specific visualizations to properly display data and convey a story, and that Splunk might not provide out of the box. With Classic dashboards, you could plug in custom visualizations that you created yourself or downloaded from Splunkbase. Now you can use those same custom visualizations in Dashboard Studio!

Any custom visualizations installed in your environment (including previously installed custom visualizations apps) will now be available to add to your Studio dashboards. You can add them via the "Add chart" option in a dashboard or from the search page.

Below is the demo dashboard used for our .conf25 hands-on workshop, Dashboard Studio for Beginners and Non-Designers. It includes the Sunburst custom visualization, and as you can see from the gif, includes interactions!

Timeline Visualization

We have added native support for Timeline visualization, which displays activity intervals and events over time for a set of resources. Timeline visualization is great for visualizing sequences of events or overlapping activities and ensuring consistent time scaling. Use Timeline visualization for tracking resource utilization, project timelines, or event patterns over time.

You can specify custom color palettes to your timeline visualization, similar to other visualizations. You can apply dynamic coloring with match values or range values, and static coloring by choosing specific colors for each series name.

Coming Soon

Check out Dashboard Studio and send in your feedback through Splunk Ideas, and you might see your feature request listed on a future blog's "coming soon" list! We are continuing to work on new capabilities, which are delivered incrementally with Splunk Cloud Platform and Splunk Enterprise releases.

Next Up….

Helpful Resources

* This information is subject to change at any time, at the sole discretion of Splunk Inc. and without notice. This roadmap information shall not be incorporated into any contract or other commitment. Splunk undertakes no obligation to either develop or deliver any product, features, or functionality described here.

Related Articles

Announcing the General Availability of Splunk POD: Unlock the Power of Your Data with Ease
Platform
2 Minute Read

Announcing the General Availability of Splunk POD: Unlock the Power of Your Data with Ease

Splunk POD is designed to simplify your on-premises data analytics, so you can focus on what really matters: making smarter, faster decisions that drive your business forward.
Introducing the New Workload Dashboard: Enhanced Visibility, Faster Troubleshooting, and Deeper Insights
Platform
3 Minute Read

Introducing the New Workload Dashboard: Enhanced Visibility, Faster Troubleshooting, and Deeper Insights

Announcing the general availability of the new workload dashboard – a modern and intuitive dashboard experience in the Cloud Monitoring Console app.
Leading the Agentic AI Era: The Splunk Platform at Cisco Live APJ
Platform
5 Minute Read

Leading the Agentic AI Era: The Splunk Platform at Cisco Live APJ

The heart of our momentum at Cisco Live APJ is our deeper integration with Cisco, culminating in the Splunk POD and new integrations, delivering unified, next-generation data operations for every organization.
Dashboard Studio: Token Eval and Conditional Panel Visibility
Platform
4 Minute Read

Dashboard Studio: Token Eval and Conditional Panel Visibility

Dashboard Studio in Splunk Cloud Platform can address more complex use cases with conditional panel visibility, token eval, and custom visualizations support.
Introducing Resource Metrics: Elevate Your Insights with the New Workload Dashboard
Platform
4 Minute Read

Introducing Resource Metrics: Elevate Your Insights with the New Workload Dashboard

Introducing Resource Metrics in Workload Dashboard (WLD) – a modern and intuitive monitoring experience in the Cloud Monitoring Console (CMC) app.
Powering AI Innovation with Splunk: Meet the Cisco Data Fabric
Platform
3 Minute Read

Powering AI Innovation with Splunk: Meet the Cisco Data Fabric

The Cisco Data Fabric brings AI-centric advancements to the Splunk Platform, seamlessly connecting knowledge, business, and machine data.
Remote Upgrader for Windows Is Here: Simplifying Fleet-Wide Forwarder Upgrades
Platform
3 Minute Read

Remote Upgrader for Windows Is Here: Simplifying Fleet-Wide Forwarder Upgrades

Simplify fleet-wide upgrades of Windows Universal Forwarders with Splunk Remote Upgrader—centralized, signed, secure updates with rollback, config preservation, and audit logs.
Dashboard Studio: Spec-TAB-ular Updates
Platform
3 Minute Read

Dashboard Studio: Spec-TAB-ular Updates

Splunk Cloud Platform 10.0.2503 includes a number of enhancements related to tabbed dashboards, trellis for more charts, and more!
Introducing Edge Processor for Splunk Enterprise: Data Management on Your Premises
Platform
2 Minute Read

Introducing Edge Processor for Splunk Enterprise: Data Management on Your Premises

Announcing the introduction of Edge Processor for Splunk Enterprise 10.0, designed to help customers achieve greater efficiencies in data transformation and improved visibility into data in motion.