Hi!
I make a dashboard in Splunk Dashboard Studio, but I don't know how I can program the Auto refresh ( every 30 sec) to update the entire dashboard.
Please Help!
{
"dataSources": {
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021|stats latest(COUNT) as 2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021App|stats latest(COUNT) as 2021App",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021OF|stats latest(COUNT) as 2021OF",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021OC|stats latest(COUNT) as 2021OC",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021OD|stats latest(COUNT) as 2021OD",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021OF|stats latest(COUNT) as 2021OF",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021OH|stats latest(COUNT) as 2021OH",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021Oss|stats latest(COUNT) as 2021Oss",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=Apply2021|stats latest(COUNT) as Apply2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021AppError|stats latest(COUNT) as 2021AppError",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021Completed|stats latest(COUNT) as 2021Completed",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021AppRefNotCompleted|stats latest(COUNT) as 2021AppRefNotCompleted",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021AppReturned|stats latest(COUNT) as 2021AppReturned",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=TotalApp2021|stats latest(COUNT) as TotalApp2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=TotalSApp2021|stats latest(COUNT) as TotalSApp2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021NT|stats latest(COUNT) as 2021NT",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=TotalAI2021|stats latest(COUNT) as TotalAI2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=TotalAS2021|stats latest(COUNT) as TotalAS2021",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_search_1": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021NInApply|stats latest(COUNT) as 2021NInApply",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_pEQkMQUp_ds_search_1": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021|table COUNT|dedup COUNT",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
},
"ds_6wDR22mI_ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021C|stats latest(COUNT) as 2021C",
"queryParameters": {
"earliest": "-15m",
"latest": "now"
}
}
}
},
"visualizations": {
"viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "StO"
},
"viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "FRO"
},
"viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "CANCEL"
},
"viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "Dp"
},
"viz_single_1_new_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "FAIL"
},
"viz_single_1_new_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "H/T"
},
"viz_single_1_new_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "S/S"
},
"viz_single_1_new_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new_new"
},
"title": "Current"
},
"viz_single_1_new_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new_new"
},
"title": "SAP"
},
"viz_single_1_new_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new_new"
},
"title": "Application C"
},
"viz_single_1_new_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new_new"
},
"title": "Application not c"
},
"viz_single_1_new_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new_new"
},
"title": "Applications returned"
},
"viz_single_1_new_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new_new"
},
"title": "Applied"
},
"viz_single_1_new_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new_new_new"
},
"title": "Applied s"
},
"viz_table_1_new": {
"type": "splunk.singlevalue",
"dataSources": {
"primary": "ds_search_1_new_new_new"
},
"title": "Applications S2"
},
"viz_single_1_new": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new_new"
},
"title": "Applied I"
},
"viz_single_1": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_search_1_new"
},
"title": "Applied s3"
},
"viz_table_1": {
"type": "splunk.singlevalue",
"dataSources": {
"primary": "ds_search_1"
},
"options": {
"sparklineDisplay": "after"
},
"title": "Total A"
},
"viz_Qa9CUq0z": {
"type": "splunk.singlevalue",
"options": {
"colorMode": "none",
"drilldown": "none",
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"trellis.enabled": 0,
"trellis.scales.shared": 1,
"trellis.size": "medium",
"unitPosition": "after",
"shouldUseThousandSeparators": true
},
"dataSources": {
"primary": "ds_6wDR22mI_ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new"
},
"title": "CL"
}
},
"inputs": {
"input_global_trp": {
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "-24h@h,now"
},
"title": "Global Time Range"
}
},
"layout": {
"type": "absolute",
"options": {
"height": 800
},
"structure": [
{
"item": "viz_table_1",
"type": "block",
"position": {
"x": 510,
"y": 20,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1",
"type": "block",
"position": {
"x": 730,
"y": 20,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new",
"type": "block",
"position": {
"x": 950,
"y": 20,
"w": 150,
"h": 150
}
},
{
"item": "viz_table_1_new",
"type": "block",
"position": {
"x": 510,
"y": 180,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new",
"type": "block",
"position": {
"x": 730,
"y": 180,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new",
"type": "block",
"position": {
"x": 950,
"y": 180,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new",
"type": "block",
"position": {
"x": 730,
"y": 340,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new_new",
"type": "block",
"position": {
"x": 950,
"y": 340,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 510,
"y": 340,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 510,
"y": 500,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 950,
"y": 500,
"w": 150,
"h": 150
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 180,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 350,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 520,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 690,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 860,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 1030,
"y": 660,
"w": 150,
"h": 130
}
},
{
"item": "viz_single_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new",
"type": "block",
"position": {
"x": 730,
"y": 500,
"w": 150,
"h": 150
}
},
{
"item": "viz_Qa9CUq0z",
"type": "block",
"position": {
"x": 10,
"y": 660,
"w": 150,
"h": 130
}
}
],
"globalInputs": [
"input_global_trp"
]
},
"title": "my view",
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
}
}
Thanks
You can add something along the lines of this for your dashboard
"ds_6wDR22mI_ds_search_1_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new_new": {
"type": "ds.search",
"options": {
"query": "index=jd1 source=2021C|stats latest(COUNT) as 2021C",
"queryParameters": {
"earliest": "-15m",
"latest": "now",
"refresh": "30s"
}
}
}
},
The refresh line was added to your ds.search. You will need to add it for each panel, unless you are using a default parameter. See this page for more information.
https://docs.splunk.com/Documentation/Splunk/8.2.3/DashStudio/Default