Dashboards & Visualizations

Dashboard studio visualizations not refreshing after date picker change

rferg06
Explorer

I have a dashboard with three dropdown inputs.  The first is Date Range and it has a default value of last 24 hours.  The dashboard does the initial search fine, but when I change the date range, via the presets in the dropdown, nothing updates

Code for the dropdown:

{
    "type": "input.timerange",
    "options": {
        "token": "dateRange",
        "defaultValue": "-24h@h,now"
    },
    "title": "Date Range"
}
Labels (1)
Tags (1)
0 Karma
1 Solution

jwalrath1
Explorer

Hi @rferg06

Be sure that your dataSources section, you are specifying the queryParameters with your dateRange token

"queryParameters": {

            "earliest": "$dateRange.earliest$"

             "latest": "$dateRange.latest$"

}

 

You can also add a submit button to your "layout" section  so that the tokens will run when the submit button is clicked:

"layout": {

         "options": {

                     "submitButton": true,

                     "height": 1750

          }

}

 

If you already have these in place, you may want to clear your splunk web cache by adding _bump to the end of your url.

View solution in original post

jwalrath1
Explorer

Hi @rferg06

Be sure that your dataSources section, you are specifying the queryParameters with your dateRange token

"queryParameters": {

            "earliest": "$dateRange.earliest$"

             "latest": "$dateRange.latest$"

}

 

You can also add a submit button to your "layout" section  so that the tokens will run when the submit button is clicked:

"layout": {

         "options": {

                     "submitButton": true,

                     "height": 1750

          }

}

 

If you already have these in place, you may want to clear your splunk web cache by adding _bump to the end of your url.

rferg06
Explorer

Thank you for the idea of the Submit button.  That helps.

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...