Splunk Enterprise

Why does some Dashboard source code start with <dashboard> and others with <form>

Gregski11
Contributor

hi I am fairly new to Splunk and inherited an environment and would like to know why some of our Dashboards source code starts with the <dashboard> tag where others don't have that tag and start with the <form> tag

furthermore if I add the <dashboard> tag above the <form> tag (of course terminate it at the end of the code as well with </dashboard>) I get the following Alerts / error:

This dashboard has no panels. Start editing to add panels.

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...