Dashboards & Visualizations

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

cnk
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>
<default>last_24h</default>
<change>
<condition value="last_24h">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-24h</set>
<set token="simple.latest">now</set>
</condition>
<condition value="last_7d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-7d</set>
<set token="simple.latest">now</set>
</condition>
<condition value="last_30d">
<set token="simple.label">$label$</set>
<set token="simple.earliest">-30d</set>
<set token="simple.latest">now</set>
</condition>
</change>
</input>
Labels (2)
0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...