Dashboards & Visualizations

Is there a way to populate fixed data range in a dropdown - Dashboard Studio?

Path Finder

Hi All,

Is there any way to populate fixed date range in a dropdown in Dashboard Studio ?  I have done it in the XML dashboard, but not finding a way to do it in Studio (JSON). Can anyone suggest ?

XML Dashboard example:  (looking for equivalent in JSON)

<input type="dropdown" token="simple">
<label>Simple Time Picker</label>
<choice value="last_24h">Last 24 Hours</choice>
<choice value="last_7d">Last 7 days</choice>
<choice value="last_30d">Last 30 days</choice>
<condition value="last_24h">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-24h</set>
<set token="simple.latest">now</set>
<condition value="last_7d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-7d</set>
<set token="simple.latest">now</set>
<condition value="last_30d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-30d</set>
<set token="simple.latest">now</set>
Labels (2)
0 Karma
Get Updates on the Splunk Community!

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...