Dashboards & Visualizations

Auto refresh All panel on the dashboard

tgulgund
Explorer

I am using splunk 9.3.2. I have visualisation panels added my dashboard with multiple queries.

I use a base search with global time picker default value to 48 hours and subsequently use the chain searches.

I need my entire dashboard to refresh after every 5 mins. I tried "refresh":300 but it doesn't work. Not sure what am I missing here.

{
"visualizations": {
},
"dataSources": {
},
"defaults": {
},
"inputs": {
},
"layout": {
"type": "absolute",
"options": {
"height": 2500,
"backgroundColor": "#000000",
"display": "fit-to-width",
"width": 1550
},
},
"description": "",
"title": "My Dashboard",
"refresh": 300
}


Labels (1)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

Hi @tgulgund @PrewinThomas 

You can set a default refresh time which will apply automatically to all data sources (unless a specific datasource is overwritten, edit the source of your dashboard and find the "defaults" section, under defaults->dataSources->ds.search->options create a new "refresh" key with a value containing your intended refresh interval, such as this:

{
    "title": "testing",
    "description": "",
    "inputs": {},
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "earliest": "-24h@h",
                        "latest": "now"
                    },
                    "refresh": "60s"
                }
            }
        }
    },
    "visualizations": {
...
...
    }
}

livehybrid_1-1749463888897.png

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

View solution in original post

0 Karma

tgulgund
Explorer

I added "refresh": "5m", "refreshType": "delay" to my base search and it works for all the chain searches

0 Karma

tgulgund
Explorer

I have a base search and multiple chain search. can u add refresh only to base search ? 

Will that refresh other panels ?

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @tgulgund @PrewinThomas 

You can set a default refresh time which will apply automatically to all data sources (unless a specific datasource is overwritten, edit the source of your dashboard and find the "defaults" section, under defaults->dataSources->ds.search->options create a new "refresh" key with a value containing your intended refresh interval, such as this:

{
    "title": "testing",
    "description": "",
    "inputs": {},
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "earliest": "-24h@h",
                        "latest": "now"
                    },
                    "refresh": "60s"
                }
            }
        }
    },
    "visualizations": {
...
...
    }
}

livehybrid_1-1749463888897.png

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

PrewinThomas
Motivator

@tgulgund 

Unfortunately i dont think dashboard studio can set auto refresh for entire dashboard in a single config, auto-refresh is set per data source. You must define the refresh interval for each relevant data source in the dataSources section of your dashboard JSON


Eg:
"dataSources": {
"myDataSource": {
"type": "ds.search",
"options": {
"query": "your search here",
"queryParameters": {
"earliest": "-48h@h",
"latest": "@h"
},
"refresh": "5m",
"refreshType": "delay"
}
}
}

#https://docs.splunk.com/Documentation/Splunk/9.4.2/DashStudio/dsOpt

Regards,
Prewin
Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a kudos/Karma. Thanks!

livehybrid
SplunkTrust
SplunkTrust

Hi @tgulgund 

For the benefit of others who find this answer, this is slightly incorrect. It *is* possible for a single setting for all your datasources, If you want to refresh all datasources on a dashboard studio dashboard then update the defaults as per my previous message.


@livehybrid wrote:

Hi @tgulgund @PrewinThomas 

You can set a default refresh time which will apply automatically to all data sources (unless a specific datasource is overwritten, edit the source of your dashboard and find the "defaults" section, under defaults->dataSources->ds.search->options create a new "refresh" key with a value containing your intended refresh interval, such as this:

{
    "title": "testing",
    "description": "",
    "inputs": {},
    "defaults": {
        "dataSources": {
            "ds.search": {
                "options": {
                    "queryParameters": {
                        "earliest": "-24h@h",
                        "latest": "now"
                    },
                    "refresh": "60s"
                }
            }
        }
    },
    "visualizations": {
...
...
    }
}

livehybrid_1-1749463888897.png

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing


 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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