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 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...