Dashboards & Visualizations

How to set timechart span from Splunk dashboard UI?

Dahara
Engager

Hello!

I would like to have timechart span configurable from the dashboard UI (e.g. via using dropdown field values), but I am not sure, how to set it up. Any help would be much appreciated!

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

I have done it with a radio button group but a dropdown would work just as well

    <input type="radio" token="span">
      <label>Bucket size</label>
      <choice value="1d">Daily</choice>
      <choice value="1h">Hourly</choice>
      <initialValue>1d</initialValue>
      <default>1d</default>
    </input>

Also, I have used a bin command, but timechart span=$span$ would work too.

| bin _time span=$span$ 

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

I have done it with a radio button group but a dropdown would work just as well

    <input type="radio" token="span">
      <label>Bucket size</label>
      <choice value="1d">Daily</choice>
      <choice value="1h">Hourly</choice>
      <initialValue>1d</initialValue>
      <default>1d</default>
    </input>

Also, I have used a bin command, but timechart span=$span$ would work too.

| bin _time span=$span$ 
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...