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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...